I've a non standard bitmap with Different BPP, I need to use GDI
command to draw on that bitmap, I've searched the net and I've found
that what I need to do is to have a display Driver.

Is this the correct path I should go for or there is much simpler way?

Thanks
Bader

Re: Draw on non standard bitmap using CreateDC by Owen

Owen
Wed Apr 25 05:12:44 CDT 2007

Can you use GetDIBits / SetDIBits to convert to/from a HBITMAP and an
array of bytes that represents the pixels?

On Tue, 24 Apr 2007 09:59:33 +0100, Bader <Bader.Mahd@gmail.com> wrote:

>
> I've a non standard bitmap with Different BPP, I need to use GDI
> command to draw on that bitmap, I've searched the net and I've found
> that what I need to do is to have a display Driver.
>
> Is this the correct path I should go for or there is much simpler way?
>
> Thanks
> Bader
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Re: Draw on non standard bitmap using CreateDC by Dave

Dave
Wed Apr 25 13:39:55 CDT 2007

Umm.... No you don't need a display driver,

You need to use a BITMAPV4HEADER... it'll let you describe just about any
wacky RGBA bit arrangment you have.

--.- Dave

"Bader" <Bader.Mahd@gmail.com> wrote in message
news:1177405173.706980.224340@b40g2000prd.googlegroups.com...
>
> I've a non standard bitmap with Different BPP, I need to use GDI
> command to draw on that bitmap, I've searched the net and I've found
> that what I need to do is to have a display Driver.
>
> Is this the correct path I should go for or there is much simpler way?
>
> Thanks
> Bader
>



Re: Draw on non standard bitmap using CreateDC by Bader

Bader
Mon Apr 30 04:39:51 CDT 2007

Thanks I'll try this.

Bader


Re: Draw on non standard bitmap using CreateDC by Bader

Bader
Mon Apr 30 04:44:34 CDT 2007

I do not think so, I've a bitmap that has a non standard bpp, it may
have 2,3,5,6,7, 12 and 16 grayscal BPP.
the GetDIBits works only with standard bitmaps.


Thanks
Bader


Re: Draw on non standard bitmap using CreateDC by Bader

Bader
Mon Apr 30 04:46:39 CDT 2007

OK,

bV5BitCount supports only 1,4,8,16,24,32 BPP, my bitmap is non
standard it can be 2,3,5,6,7, 12 or 16 grayscal bitmap, and I need to
draw on that bitmap using GDI functions.



Thanks
Bader Mah'd