Announcement

Collapse
No announcement yet.

DrawImage and external files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DrawImage and external files

    Does the DrawImageRelative function only support internal system images or will it support external files in a similar way to Alarms?

    If so, are there any restrictions on what external files are supported by this function:

    e.g. file type and/or extension, max pixel size etc.

    Can't find any reference in the documentation to using external files.

    Thanks in advance

    Maurice

  • #2
    There is no support for external files for any of the drawXXX() functions.

    You can always draw onto the screen and snapshot it if you want to get an image to a file....

    G
    Garth

    Comment


    • #3
      System Images

      Garth

      thanks - but I was trying to get an external image FROM a file to display in the chart.

      However, the question arose because I have been playing around with the system images as in


      drawImageRelative(0, high()+1,"SystemCircleBlue", Image.ONTOP etc etc

      but needed something different - e.g. a dollar sign.



      Does anyone else find a mis-match between some of the system image names and the actual image displayed? For instance:

      using SystemSun displays a snowflake
      using SystemLightning displays a White Stop sign
      using SystemReallyHappyFace displays SadFace
      using SystemSadFace displays ReallyHappyFace
      using SystemSnowflake display Lightning
      using SystemCircleBlue displays Light on

      Haven't tried them all.

      regards

      Maurice

      Comment


      • #4
        Hi,


        You can't go that direction either, but you COULD try using drawTextxxx and using the "$"...should work. As Alex has pointed out you can also specifiy Wingdings as a font now and have access to many different symbols via drawTextxxx.

        Garth
        Garth

        Comment

        Working...
        X