I've used the code below to fill "bmp" with the details about the picture in "Picture1".
The problem is i'm no longer wanting to use a PicBox and have stored a picture in a DC I created instead. Does anyone know if there is a way to get these details from just the DC, The only part of "bmp" that I really need is "bmp.bmBits".VB Code:
Private Type BITMAP bmType As Long bmWidth As Long bmHeight As Long bmWidthBytes As Long bmPlanes As Integer bmBitsPixel As Integer bmBits As Long End Type Private bmp As BITMAP GetObjectA Picture1.Picture, Len(bmp), bmp
Thanx to anyone that can help.




)
Reply With Quote