Flipping an image on a Form

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top