Debenu Quick PDF logo

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 TDebenuPDFLibrary1811.SetImageMaskCMYK(FromC, FromM, FromY, FromK, ToC, 
  ToM, ToY, ToK: Double): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::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 DPLSetImageMaskCMYK(int InstanceID, double FromC, double FromM, double FromY,
  double FromK, double ToC, double ToM, double ToY, double ToK)

Parameters

FromC The cyan component of the starting color for the mask
FromM The magenta component of the starting color for the mask
FromY The yellow component of the starting color for the mask
FromK The black component of the starting color for the mask
ToC The red component of the ending color for the mask
ToM The magenta component of the ending color for the mask
ToY The yellow component of the ending color for the mask
ToK The black component of the ending color for the mask

Return values

0 No image was selected
1 The image mask was set successfully

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport