Home > BSPrinter documentation > Reference

BSOpCodeConstants Enumeration

Constants to be used in the PaintPicture method of the Printer object for the Opcode parameter.

It includes the original raster op constants and adds some new options.


bsSMHalfTone = 0 ' Stretch mode: HalfTone, what means better quality for stretching.                  It is the default setting, and was not available in the Original VB6's Printer object.         To set this object to work as the original (lower quality when stretching images), set it to bsSMVB6Default.
vbNotSrcErase = 1114278 ' Original from VB6.         Raster operation: Inverts the result of combining the destination and source bitmaps by using OR.                  
vbNotSrcCopy = 3342344 ' Original from VB6.         Raster operation: Copies the inverted source bitmap to the destination.
vbSrcErase = 4457256 ' Original from VB6.         Raster operation: Inverts the destination bitmap and combines the result with the source bitmap by using AND.
vbDstInvert = 5570569 ' Original from VB6.         Raster operation: Inverts the destination bitmap.
vbPatInvert = 5898313 ' Original from VB6.         Raster operation: Combines the destination bitmap with the pattern by using XOR.
vbSrcInvert = 6684742 ' Original from VB6.         Raster operation: Combines pixels of the destination and source bitmaps by using XOR.
vbSrcAnd = 8913094 ' Original from VB6.         Raster operation: Combines pixels of the destination and source bitmaps by using AND.
vbMergePaint = 12255782 ' Original from VB6.         Raster operation: Combines the inverted source bitmap with the destination bitmap by using OR.
vbMergeCopy = 12583114 ' Original from VB6.         Raster operation: Combines the pattern and the source bitmap.
vbSrcCopy = 13369376 ' Original from VB6.         Raster operation: Copies the source bitmap to the destination bitmap.
vbSrcPaint = 15597702 ' Original from VB6.         Raster operation: Combines pixels of the destination and source bitmaps by using OR.                  
vbPatCopy = 15728673 ' Original from VB6.         Raster operation: Copies the pattern to the destination bitmap.
vbPatPaint = 16452105 ' Original from VB6.         Raster operation: Combines the inverted source bitmap with the pattern by using OR. Combines the result of this operation with the destination bitmap by using OR.
bsSMBlackOnWhite = 16777216 ' Stretch mode: Performs a Boolean AND operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves black pixels at the expense of white pixels.
bsSMVB6Default = 16777216 ' Stretch mode: the same as bsSMBlackOnWhite.
bsSMWhiteOnBlack = 33554432 ' Stretch mode: Performs a Boolean OR operation using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves white pixels at the expense of black pixels.
bsSMColorOnColor = 50331648 ' Stretch mode: Deletes the pixels. This mode deletes all eliminated lines of pixels without trying to preserve their information.
bsSMQualityStretch = 83886080 ' Stretch mode: Uses an enhanced stretching routine (Bicubic) that produces best quality, at expense of processing time.
bsTransparentColor = 134217728 ' Stretch mode: the image is painted with a transparent background color. The color used as transparent will be the first pixel of the image, the one at the location (0,0), the first pixel of left-top corner.