L
LietenantDan
I have images that are tied to a field on a form, so when you page through
the records the image changes as the path changes.
My problem is that the images are upside down.
I need to have the image automatically flip as it is retrieved and displayed.
I know that I need to use this:
Declare Function StretchBlt Lib "gdi32" _
Alias "StretchBlt" (ByVal hdc As _
Long, ByVal x As Long, ByVal y As _
Long, ByVal nWidth As Long, ByVal _
nHeight As Long, ByVal hSrcDC As _
Long, ByVal xSrc As Long, ByVal _
ySrc As Long, ByVal nSrcWidth As _
Long, ByVal nSrcHeight As Long, _
ByVal dwRop As Long) As Long
Public Const SRCCOPY = &HCC0020
StretchBlt hdc, 0, 0, ScaleWidth, -ScaleHeight, _
picBlt.hdc, 0, 0, picBlt.ScaleWidth, _
-picBlt.ScaleHeight, SRCCOPY
But I can't seem to figure out how to reference the fields on the form, get
their height....width...etc.
Help!
Thanks,
Dan
the records the image changes as the path changes.
My problem is that the images are upside down.
I need to have the image automatically flip as it is retrieved and displayed.
I know that I need to use this:
Declare Function StretchBlt Lib "gdi32" _
Alias "StretchBlt" (ByVal hdc As _
Long, ByVal x As Long, ByVal y As _
Long, ByVal nWidth As Long, ByVal _
nHeight As Long, ByVal hSrcDC As _
Long, ByVal xSrc As Long, ByVal _
ySrc As Long, ByVal nSrcWidth As _
Long, ByVal nSrcHeight As Long, _
ByVal dwRop As Long) As Long
Public Const SRCCOPY = &HCC0020
StretchBlt hdc, 0, 0, ScaleWidth, -ScaleHeight, _
picBlt.hdc, 0, 0, picBlt.ScaleWidth, _
-picBlt.ScaleHeight, SRCCOPY
But I can't seem to figure out how to reference the fields on the form, get
their height....width...etc.
Help!
Thanks,
Dan