Persits Software, Inc. Knowledge Base Articles

Displaying CMYK Images with AspPDF

Problem Description

When displaying a CMYK image on a document with AspPDF, the image appears inverted:

Solution

Call the OpenImage (or OpenImageBinary ) method with the Invert parameter set to true, as follows:

Set Image = Doc.OpenImage("c:\path\image.jpg", "invert=true")
Page.Canvas.DrawImage Image, Params