4 Dec
2012
4 Dec
'12
4:06 p.m.
Vincent Povirk <madewokherd(a)gmail.com> writes:
Does that mean there's no way to access the bits directly given a DIB object?
If you don't know how it was created, then no.
I think we do it line by line so that we don't rely on GdipCreateBitmapFromScan0 to create the bitmap with a particular stride. I guess we could specify a stride when calling that.
It seems to me the default is already a DIB stride.
Sure, but it shouldn't crash and burn.
I don't understand why it would. I'd expect the GetObject to fail given sizeof(DIBSECTION) if the object is a DDB.
No, that's not how it works, size is an upper bound. -- Alexandre Julliard julliard(a)winehq.org