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
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 339 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 832 RAPID Programming
- 14 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings