pciGrabber-4x4
108
PHYTEC Messtechnik GmbH 2008 L-720e_0
Flip Image Vertically
DWORD FlipPicture(WORD nDevNo, unsigned char flip)
flip
: 0 = image is stored upright
: 1 = image is flipped vertically (default)
With this fuction, the vertical orientation of the image in the memory
can be set:
flip = 0
flip=1 (default)
The image is stored upright. This
means, the lowest image memory
address contains the upper-left
corner of the image:
The image is flipped vertically before it
is stored in the image memory.
The lowest image memory address
contains the lower-left corner of the
image:
This might be useful, if image date are
processed in BMP-format.
Important:
•
The setting of the vertical image orientation with
FlipPicture()
must be done before the
Set_Image()
– function ic called. The
settings takes affect not before
Set_Image()
is called.
To change the settings while the grabber is running, it has to be
stopped first. Then the setting can be changed by calling the
command sequence
FlipPicture()
and
SetImage()
.
•
The default setting is
flip=1
(the image is stored upside-down; for
compatibility reasons.)