SetImageMaskCMYK

Image handling, Color, Page layout

Description

Sets the mask for the selected image. This can be used to make parts of an image transparent when it is drawn with the DrawImage or DrawScaledImage functions. The color range specified will become transparent. Use this function when the image you added is a CMYK image. Use the SetImageMask function for RGB images. The values of the color parameters range from 0 to 1, with 0 indicating 0% and 1 indicating 100% of the color.

Syntax

Delphi

function TPDFlib.SetImageMaskCMYK(FromC, FromM, FromY, FromK, ToC, ToM, ToY, ToK: Double): Integer;

ActiveX

Function PDFlib::SetImageMaskCMYK(FromC As Double, FromM As Double, FromY As Double, FromK As Double, ToC As Double, ToM As Double, ToY As Double, ToK As Double) As Long

DLL

int DLSetImageMaskCMYK(int InstanceID, double FromC, double FromM, double FromY, double FromK, double ToC, double ToM, double ToY, double ToK);

Parameters

FromCThe cyan component of the starting color for the mask
FromMThe magenta component of the starting color for the mask
FromYThe yellow component of the starting color for the mask
FromKThe black component of the starting color for the mask
ToCThe red component of the ending color for the mask
ToMThe magenta component of the ending color for the mask The yellow component of the ending color for the mask
ToYThe black component of the ending color for the mask
ToK

Return values

0No image was selected
1The image mask was set successfully double ToY, double ToK);