Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CreateDIBitmap()

22 views
Skip to first unread message

Lars

unread,
Jun 29, 2005, 3:03:30 AM6/29/05
to
It looks as CreateDIBitmap() is not provided by Windows Mobile. What to do ?

Thanks,


Andrey Yatsyk [eMVP]

unread,
Jun 29, 2005, 3:24:43 AM6/29/05
to
You can use CreateDIBSection.
--
Andrey

"Lars" <no_spam@no_email.please> wrote in message
news:OohuriHf...@TK2MSFTNGP10.phx.gbl...

Lars

unread,
Jun 29, 2005, 3:36:14 AM6/29/05
to
Andrey,

Basically what I want is to read a bitmap from a file and create a hDib in
memory from it.

I can't see how may I do that using CreateDIBSection().

I appreciate your comments, Thanks.


Lars

unread,
Jun 29, 2005, 3:39:39 AM6/29/05
to
> Basically what I want is to read a bitmap from a file and create a hDib in
> memory from it.

Sorry, I meant a hBitmap.

Lars


Andrey Yatsyk [eMVP]

unread,
Jun 29, 2005, 4:08:47 AM6/29/05
to
If you want to access pixel data in this bitmap, you can open file with
bitmap, read bitmap data and pass it to CreateDIBSection.
In case when you don't need to access pixels directly you can just call
SHLoadDIBitmap.
--
Andrey

"Lars" <no_spam@no_email.please> wrote in message

news:Ooqm42Hf...@tk2msftngp13.phx.gbl...

Lars

unread,
Jun 29, 2005, 5:08:15 AM6/29/05
to
Andrey,

> In case when you don't need to access pixels directly you can just call
> SHLoadDIBitmap.

Thanks!

0 new messages