
07-08-2012, 04:37 AM
|
 |
Senior Contributor
|
|
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,232
|
|
we can create arrays with any dimensions:
Code:
ReDim ImageData(0 To ByteAlignOnWord(24, bm.bmWidth) - 1, 0 To bm.bmHeight - 1)
and i know use GetDIBits() api function:
Code:
GetDIBits SrcPictureBox.hDC, SrcPictureBox.Image, 0, bm.bmHeight, ImageData(0, 0), bmi, 0
my problem is: how i know that GetDIBits() put only the colors or the RGB colors?
(the tutorials,that i found, don't explain these question... i did with 2D array sample, but we can do with 1D or even with 3D. but the tutorials don't explain how do these... can anyone explain to me?)
|
|