#16 create color images

closed
nobody
None
5
2007-02-10
2006-07-21
Anonymous
No

I read image files with readu
and want to display with tv

How do i display it in color
How do i load a colormap

Discussion

  • FeLiNe

    FeLiNe - 2006-09-19

    Logged In: YES
    user_id=1374852

    If I understand the questions right, then it was just
    answered in the forums:

    GDL> tvscl,findgen(200,200),channel=1
    GDL> tvscl,transpose(findgen(200,200)),channel=2

    etc,etc ...

    Unless the question is about decoding a (gif, png, jpg etc)
    into a bitmap, in which case the right answer is probably
    not to use readu, but something like

    ret = read_png('image.png')
    tv,reverse(ret),tru=1

    (hard to help out when I don't really know what the question
    is asking...)

     
  • Alain C.

    Alain C. - 2006-09-29

    Logged In: YES
    user_id=1418043

    loadct, number

    without number, gives a list

    then, e.g. : TVSCL, DIST(128)

    PS: I still have a probleme with RED color on x86_64
    (I have to do a bug report !)

     
  • Joel Gales

    Joel Gales - 2007-02-10
    • status: open --> closed
     

Log in to post a comment.