RE: Display Picture.

new topic     » topic index » view thread      » older message » newer message

Hi Sam,

>From my poor memory I think read_bitmap only supports 256 (8 bit) 
colour images.

It's also "possible" that some of the more advanced compression 
techniques aren't handled by read_bitmap either. I'm not sure about
this but it would be worth reading the docs for read_bitmap.

Ray Smith

 Sam wrote:
> Hi ...
> 
>    Appreciate the answers I've gotten from you guys. Hope you can come 
> up with one more. I can't seem to get Euphoria to display a picture.
> 
>   include image.e
>   sequence Pic1
>   Pic1 = read_bitmap ("C:\\Euphoria\\MyPic.Bmp")
> 
>   Got message "type_check failure, MyPic is 1" 
> 
>    Tried a different picture. This time, for variety, I got, "type_check 
> failure, DiffPic is 3."
> 
>    Wasn't going to give up that easily though. Changed the program 
> slightly.
> 
>    include image.e
>    object Pic1
>    Pic1 = read_bitmap ("C:\\Euphoria\\MyPic.Bmp")
> 
>    Hey! No error msg. this time!
> 
>    So I added a line:
> 
>    display_image ({100, 20}, Pic1 [2])
> 
>    This time I got, "attempt to subscript an atom
>                      (reading from it)"
> 
>    So then I tried to run the `Bitmap.ex' program in the demo\dos32 
> directory. Tried three different pictures. One showed up on screen, but 
> only the bottom 20 percent. The other two get msg, `unsupported format.' 
> 
> 
>    Any idea??
> 
>    Thanks,
> 
>    Sam 
> 
> 



Ray Smith
http://rays-web.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu