Results 1 to 3 of 3

Thread: Images with C#

  1. #1
    Newbie
    Join Date
    Mar 2007
    Posts
    8

    Question Images with C#

    Hey there...

    has anybody a clue how the images in streetdeck work?

    I assume something like this

    StreetDeck.ImagePanel panel = (StreetDeck.ImagePanel)module.CreatePanel(StreetDe ck.enumCreatePanelType.eCPTImage,
    "", id, x, y, 400, 400);

    panel.SetImage(???)

    Thank you,
    Lars

  2. #2
    Newbie
    Join Date
    Mar 2007
    Posts
    8
    Nobody has a clue?

  3. #3
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    This should load an image from the script path called scrnshot.jpg.

    Code:
    StreetDeck.ImagePanel imageTest;
    //Create an image and load a file from our script folder into it
    imageTest = (StreetDeck.ImagePanel)module.CreatePanel(StreetDeck.enumCreatePanelType.eCPTImage, "", "Image", 100, 200, 900, 100);
    //This assumes there is a jpg file called scrnshot.jpg in your script folder
    imageTest.SetImage(module.GetScriptTexture("scrnshot.jpg"));
    You can also load absolute paths like this:
    Code:
    imageTest.SetImage(module.GetScriptTexture("C:\\Windows\\Coffee Bean.bmp"));
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

Similar Threads

  1. Blue Devil Skin RELEASED
    By JohnWPB in forum RR Skins No Longer Supported
    Replies: 1005
    Last Post: 01-05-2007, 08:54 PM
  2. NEW images about MTX (in China)
    By mike_guo in forum Car Audio
    Replies: 2
    Last Post: 06-18-2006, 08:06 PM
  3. Access 2003 help needed
    By veedubya in forum Off Topic
    Replies: 2
    Last Post: 05-31-2006, 07:49 PM
  4. Easy way to view and play DVD images?
    By parvo99 in forum FrodoPlayer
    Replies: 0
    Last Post: 10-12-2005, 07:13 PM
  5. Coyote, launch images
    By more mods in forum MediaCar
    Replies: 5
    Last Post: 03-21-2004, 01:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •