1. Color Modes...(vesa20.e)

1) I know that 65k means 65,000, and that 16.7M means 16,700,000, but
in terms of number of colors in a graphics mode, is 65k literally
65,000, or 16.7M literally 16,700,000?  I would like to know so I can
incorporate it into my graphics library...which I now am finished with
the 'rough draft,' and am now writing the demo programs for it.  Any
help is appreciated, it's just that computer numbers can be tricky.
With 1 Kb actually being 1024 bytes and all.

2) Is there any way to read a 24-bit bitmap/image under DOS with
current libraries?  I'm thinking of adding 24-bit support to my
library.

Thanks all, and please help,
Mike Hurley

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

new topic     » topic index » view message » categorize

2. Re: Color Modes...(vesa20.e)

EUPHORIA at LISTSERV.MUOHIO.EDU wrote:

> 1) I know that 65k means 65,000, and that 16.7M means 16,700,000, but
> in terms of number of colors in a graphics mode, is 65k literally
> 65,000, or 16.7M literally 16,700,000?  I would like to know so I can
> incorporate it into my graphics library...which I now am finished with
> the 'rough draft,' and am now writing the demo programs for it.  Any
> help is appreciated, it's just that computer numbers can be tricky.
> With 1 Kb actually being 1024 bytes and all.

Probably, 65K is actually using 2^16 colors, or 65536. 16.7M is 24-bit
color, or 16777216 colors.

>
>
> 2) Is there any way to read a 24-bit bitmap/image under DOS with
> current libraries?  I'm thinking of adding 24-bit support to my
> library.
>
> Thanks all, and please help,
> Mike Hurley
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: Color Modes...(vesa20.e)

From: Mike Hurley
>1) I know that 65k means 65,000, and that 16.7M means 16,700,000, but
>in terms of number of colors in a graphics mode, is 65k literally
>65,000, or 16.7M literally 16,700,000?  I would like to know so I can
>incorporate it into my graphics library...which I now am finished with
>the 'rough draft,' and am now writing the demo programs for it.  Any
>help is appreciated, it's just that computer numbers can be tricky.
>With 1 Kb actually being 1024 bytes and all.

    #0000FFFF = 65,535
    #00FFFFFF = 16,777,215
<g>  when in doubt, check with a calculator.

>2) Is there any way to read a 24-bit bitmap/image under DOS with
>current libraries?  I'm thinking of adding 24-bit support to my
>library.

    I think neil.e's load_bitmap() does that...  Yup!  Sure does.  smile

new topic     » goto parent     » topic index » view message » categorize

4. Re: Color Modes...(vesa20.e)

Message text written by Mike Hurley
>I know that 65k means 65,000, and that 16.7M means 16,700,000, but
in terms of number of colors in a graphics mode, is 65k literally
65,000, or 16.7M literally 16,700,000?<

65 K refers to 65,536 which is 2 to the 16th power (2^16, 16-bit color). =

16.7 million refers to 16,777,216 which is 2^24 (as in 24-bit color).  So=
,
in general, 2^(bit depth) =3D number of colors.

Colin Taylor

PS.  Since Dan unsubscribed and Jiri boarded that jet, it has gotten
awfully quiet on the list!  :-I

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu