Description The CutDIBTop method cuts the image at the specified height. The second parameter denotes the distance in pixels from the top of the image. The CutDIBTop only works for 1, 4, 8 and 24 bit per pixel images. If the cut is successful the HalfDIB property will contain the bottom of the original image, otherwise the HalfDIB property will not change.
Syntax RetVal = [BIDisp.]CutDIBTop hDib height
Returns RetVal LONGLONG If the cut is successful it will contain the top of the original image, otherwise the RetVal is zero.
Remarks hDib LONGLONG Device indipendent bitmap to cut.
height Long Specifies the cut location in pixels from the top of the image.
See Also CutDIBBottom Method, HalfDIB Property, Cut Property