Debenu Quick PDF logo

ReverseImage

Image handling

Description

This function reverses the interpretation of the color components in the selected image. For example, a green pixel (0, 255, 0) will become a purple pixel (255, 0, 255) and a black pixel will become a while pixel.

Syntax

Delphi

function TDebenuPDFLibrary1811.ReverseImage(Reset: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::ReverseImage(Reset As Long) As Long

DLL

int DPLReverseImage(int InstanceID, int Reset)

Parameters

Reset Indicates whether the /Decode parameter in the image dictionary should be removed. This is necessary when the image is used as a stencil mask in Acrobat 4.0, but may give different results for different source image types (BMP, TIFF and PNG). Experimentation will be necessary.
0 = Keep the /Decode array and reverse the image
1 = Remove the /Decode array

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport