GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureDocumentConverter Class / EnableICC Property
Example





In This Topic
EnableICC Property (GdPictureDocumentConverter)
In This Topic
Specifies if the ICC profile should be preserved during the conversion if it's present in the loaded document.
Syntax
'Declaration
 
Public Property EnableICC As Boolean
public bool EnableICC {get; set;}
public read-write property EnableICC: Boolean; 
public function get,set EnableICC : boolean
public: __property bool get_EnableICC();
public: __property void set_EnableICC( 
   bool value
);
public:
property bool EnableICC {
   bool get();
   void set (    bool value);
}

Property Value

The default value is true.
Example
Enable ICC profile durring the conversion.
Using gdpictureDocumentConverter As New GdPictureDocumentConverter()
    gdpictureDocumentConverter.LoadFromFile("input.jpg", GdPicture14.DocumentFormat.DocumentFormatJPEG)
    gdpictureDocumentConverter.EnableICC = True
    gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_7)
End Using
using (GdPictureDocumentConverter gdpictureDocumentConverter gdpictureDocumentConverter = new GdPictureDocumentConverter())
{
    gdpictureDocumentConverter.LoadFromFile("input.jpg", GdPicture14.DocumentFormat.DocumentFormatJPEG);
    gdpictureDocumentConverter.EnableICC = true;
    gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_7);
}
See Also