Re: BMP
Don Scott wrote:
>
> I don't think I explained myself correctly...
>
> Colin Taylor has a bitmap.e file and explains this in his text file:
> "Windows bitmap (.bmp) files can be converted to Euphoria
> bitmaps by the read_bmp() routine." I want to know how to convert .bmp to
> (I assume) .bm files. An example is attached. Your help is appreciated!
>
>
<snip>
I believe the "Euphoria bitmaps" he's talking about is
really just the way the libraries store the information for a bit
map, not a file type like windows *.BMP or *.GIF or *.PCX
What read_bitmap() doese is not really a file conversion, it just
reads a windows style *.BMP file and stores it and it's pallete
in a sequence I.E.
sequence image
image = read_bitmap("c:\images\myimiage.bmp")
image is now a two element sequence with the first element being the
pallete and the second being the image itself (IF I remember correctly
(anyone jump in if I'm wrong) as a two element sequence itself in x,y
format)
this is your "euphoria bitmap formatt" not really a format
just an internal storage convention so you can manipulate the image
without having to work directly with it in video memory and all the
hasle that can entail.
Hope this helps.
Kasey
|
Not Categorized, Please Help
|
|