Vincent Povirk <[email protected]> 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 [email protected]
