RobotStudio event

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

Comments

  • carlosmtz2000
    Options
    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 JPG

     

    The 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 helps
    Carlos Martinez
    ABB
  • 51Magnum
    Options
    Carlos,

    You are always there to help!

     

    Thanks
  • 51Magnum
    Options
    Why can't I add the resource ABB.Robotics.TAF.Base?  Am I missing something? 

    Shane
  • carlosmtz2000
    Options
    what do you mean ... adding this assembly as a reference to your project?
    Carlos Martinez
    ABB
  • 51Magnum
    Options
    Yes......  Man I am feeling a little stupid here, sorry.  How do I add the reference.  I thought it was
     

    using ABB.Robotics.TAF.Base;

     

    But it says I need to use version 5.11.11 or something like that. 

     

    Shane
  • 51Magnum
    Options
    Never mind!!!  I remember now. 

    Sorry it has been a few months.
     

    Shane