Am 22.09.2013 um 18:13 schrieb Michael Diehr <[email protected]>:

> As I understand it, the new-style picture images require gdiplus (GDI+) and 
> may require some different flags sent to the API
> I see some examples discussing related issues…


Current code looks like this:

GpStatus e = _GdipBitmapLockBits(g, &r, flags, PixelFormat32bppPARGB, 
bitmapData2);
DebugMessage("e",e);
if (e == 2)
        {
        e = _GdipBitmapLockBits(g, &r, flags, PixelFormat32bppARGB, 
bitmapData2);
        DebugMessage("e",e);
        }
if (e == 2)
        {
        DebugMessage("Try ARGB read and write");
        e = _GdipBitmapLockBits(g, &r, ImageLockModeRead|ImageLockModeWrite, 
PixelFormat32bppARGB, bitmapData2);
        DebugMessage("e",e);
        }

So I try already several combinations.
Flags should be ImageLockModeRead or ImageLockModeWrite depending on mode.

Greetings
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to