PICTools Programmer's Reference
OP_ZOOM

OP_ZOOM: DIB zoom/shrink, gray scale, halftone

The OP_ZOOM opcode operates on 8-bit and 24-bit input DIBs creating 1-bit halftone, 8-bit gray scale or 24-bit color output DIBs possibly changed in width and/or height.  An 8-bit input DIB can be color or gray scale.

The bit-depth and color characteristics of the output DIB is determined as follows:

The dimensions of the output DIB are determined according to the u.ZOOM.Mode field.  If it is 0, then the new image width and height will be u.ZOOM.NewWidth and u.ZOOM.NewHeight.  Otherwise the new image width will be the rounded value of:

Head.biWidth * ( u.ZOOM.NewWidth / u.ZOOM.NewHeight )

and the new image height will be the rounded value of:

Head.biHeight * ( u.ZOOM.NewWidth / u.ZOOM.NewHeight )

See the ZOOM_PARMS structure section for additional information.

Notes

 

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback