Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Icon file structure
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00497313
Message ID:
00497391
Views:
12
Neil,
>
>First, stop bugging me :-)

Naw, I'm not bugging you...I'm "featuring" you.< g,d&r >

>I presume that because your going to be using the StretchBlt() API call that your dealing with DDB's. If you blit and scale into a new, compatible memory DC then you can get at the DDB pixel array directly using the GetBitmapBits API call.
>
>void DDBPixelBits(HWND hWnd, HBITMAP hBmp)
>{
>int nSize;
>
>   nSize = GetBitmapBits(hBmp, 0, NULL);
>   BYTE *pPixelArray = new BYTE[nSize];
>
>   if (pPixelArray)
>   {
>      GetBitmapBits(hBmp, nSize, pPixelArray);
>      delete [] pBuffer;
>   }
>}
>
>You may still have to bugger about a bit with the conversion but getting at the pixel array should give you most of the information required.

I'll play around with it. It's one of those things on my "Gee, wouldn't it be neat if I could..." list. The GetBitmapBits() is probably exactly what I need. I'd used GetDIBits() with Obj2BMP directly after the BitBlt() call, but since we're not dealing with DIBs here...

Many thanks,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform