Is it possible to create a texture from an Image ?
Hello 
I am trying to make a texture from a bitmap like this :
Can you help me ? Did I missed a step ?
Thank you in advance,
Alexandre Nicaise

I am trying to make a texture from a bitmap like this :
Texture texture = new Texture(image); // image is a bitmapbut I got this error : invalid parameter. I checked if there was a difference in the pixelformat but it was the same.
Can you help me ? Did I missed a step ?
Thank you in advance,
Alexandre Nicaise
Tagged:
0
Answers
-
Not a helpful answer, but looks like you are creating a smart component that applies a texture, any chance you made it? I am trying to create the same thing.0
-
I tried the following code and it worked without exception, where pngPath is the path for a .png figure.Bitmap bitmap = new Bitmap(pngPath);Texture texture = new Texture(bitmap);Material material = new Material(texture);graphicComponent.SetMaterial(material, true);0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 304 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 354 IRC5
- 74 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 850 RAPID Programming
- 26 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings