1. Pixmap "depth"

Hello all!

Graphics is not my fort=E9, but I'm having to wrap some graphics functions=
=20
for a library that I'm working on.  One of these functions returns the=20
"depth" of a pixmap.

Could someone please define the meaning of a pixmap's depth?  During=20
testing, I tried two different images ... one, a pixmap icon, and the=20
other, a JPEG image from my digital camera.  Both reported a "depth" of=20
16.  Because I don't know what "depth" means, I can't tell whether that=20
is the right answer, or whether I screwed something up.

Thanks,

Travis Beaty.

new topic     » topic index » view message » categorize

2. Re: Pixmap "depth"

Travis Beaty wrote:

> Could someone please define the meaning of a pixmap's depth?  During=20
> testing, I tried two different images ... one, a pixmap icon, and the=20
> other, a JPEG image from my digital camera.  Both reported a "depth" of=20
> 16.  Because I don't know what "depth" means, I can't tell whether that=20
> is the right answer, or whether I screwed something up.

Number of bits per pixel.
A depth of 1 would be black or white, 8 would 1 of 256 colors, etc.
You can create and save a test image in various BPP using most graphics 
programs.

Irv

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

3. Re: Pixmap "depth"

Perhaps they mean color depth? 2, 8, 16, 256, or 24-bit (16 million) colors.
Its only a suggestion but it might be right.

~Greg

----- Original Message -----
From: "Travis Beaty" <travis at travisbeaty.us>
To: <EUforum at topica.com>
Sent: Wednesday, August 11, 2004 5:35 PM
Subject: Pixmap "depth"


>
>
> Hello all!
>
> Graphics is not my fort=E9, but I'm having to wrap some graphics
functions=
> =20
> for a library that I'm working on.  One of these functions returns the=20
> "depth" of a pixmap.
>
> Could someone please define the meaning of a pixmap's depth?  During=20
> testing, I tried two different images ... one, a pixmap icon, and the=20
> other, a JPEG image from my digital camera.  Both reported a "depth" of=20
> 16.  Because I don't know what "depth" means, I can't tell whether that=20
> is the right answer, or whether I screwed something up.
>
> Thanks,
>
> Travis Beaty.
>
>
>
>

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

4. Re: Pixmap "depth"

Hello Irv.

Super, thanks. 

I checked out the digital camera image I tested with, and found that the 
depth is indeed 16.

I've also changed a few settings on my email client (Thunderbird), to 
see if I can get all those darn "=20"s out of my email.  Sorry about 
that mess, folks.

Travis.


irv mullins wrote:

>Number of bits per pixel.
>A depth of 1 would be black or white, 8 would 1 of 256 colors, etc.
>You can create and save a test image in various BPP using most graphics 
>programs.
>
>Irv
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu