Image Path
Options
What is the path that I should use if I have a bmp that I want to load in a picture box?
pbScreenGraphic.Image = new Bitmap("/HOME/Idle.bmp");
thanks!
Shane
0
Comments
-
You can use the TpsResourceManager to load the image. This class has a method called GetImage, which will load the file from you,TpsResourceManager tpRM = TpsResourceManager();pbScreenGraphic.Image = tpRM.GetImage("Idle.bmp"); <- if possible, change this to JPGThe image file Idle.bmp should be in the system's home folder. After the FlexPendant restarts, all images located in this folder will be copied into the FlexPendant, from where the TpsResourceManager loads them.Hope this helpsCarlos Martinez
ABB0 -
Carlos,You are always there to help!Thanks0
-
Why can't I add the resource ABB.Robotics.TAF.Base? Am I missing something?
Shane0 -
what do you mean ... adding this assembly as a reference to your project?Carlos Martinez
ABB0 -
Yes...... Man I am feeling a little stupid here, sorry. How do I add the reference. I thought it wasusing ABB.Robotics.TAF.Base;But it says I need to use version 5.11.11 or something like that.Shane0
-
Never mind!!! I remember now.
Sorry it has been a few months.Shane0
Categories
- All Categories
- 5.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings