Description
Assembly: pdfduo-net (in pdfduo-net.dll)
Version: 2.3.0.0 (2.3)
CopyC#
CopyVB.NET
The quality of images in the document.
Namespace:
DuoDimensionAssembly: pdfduo-net (in pdfduo-net.dll)
Version: 2.3.0.0 (2.3)
Syntax
| C# | Visual Basic |
public int ImageQuality { get; set; }
Public Property ImageQuality As Integer
Remarks
The ImageQuality specifies the level of compression for images. Te range of useful values for the quality category is from 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. Zero would result in the lowest quality image and 100 the highest.
Examples
StringBuilder html_st = new StringBuilder(@"Testing the image Quality: <img src=image.jpg />"); string file_pdf = @"K:\new.pdf"; try { DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf(); conv.OpenHTML(html_st); conv.ImageInfo.ImageQuality = 50; conv.SavePDF(file_pdf); System.Diagnostics.Process.Start(file_pdf); } catch (Exception ex) { MessageBox.Show(ex.Message); }
Dim html_st As New System.Text.StringBuilder("Testing the image Quality: <img src=image.jpg />") Dim file_pdf As String = "K:\new.pdf" Try Dim conv As New DuoDimension.HtmlToPdf() conv.OpenHTML(html_st) conv.ImageInfo.ImageQuality = 50 conv.SavePDF(file_pdf) System.Diagnostics.Process.Start(file_pdf) Catch ex As Exception MessageBox.Show(ex.Message) End Try
See Also
ImageInfo Class
DuoDimension Namespace