This class enables you to read PDF images.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public NotInheritable Class PdfWriter _ Inherits FormatWriter
public sealed class PdfWriter : FormatWriter
PDF stands for Portable Document Format. This format was developed by Adobe® Systems® Incorporated for the secure and reliable distribution and exchange of electronic documents and nowadays this formats became standard de facto in this field. In general this formats contains not only raster images, but also vector data and texts. However Graphics Mill for .NET can only embed raster images to PDF file.
You can create multiple pages in the PDF file. Bitmaps stored in the frame can be of most all the pixel format.
The same, but using PdfWriter class. This class provides more flexible file saving support. In particular, you can use asynchronous mode, etc.
Dim bitmap As New Aurigma.GraphicsMill.Bitmap("c:\Mountain.jpg") Dim writer As New Aurigma.GraphicsMill.Codecs.PdfWriter("C:\Mountain.pdf") Dim frame As New Aurigma.GraphicsMill.Codecs.PdfFrame frame.Quality = 70 frame.SetBitmap(bitmap) bitmap.Dispose() writer.AddFrame(frame) frame.Dispose() writer.Dispose()
using (Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(@"c:\Mountain.jpg")) { using (Aurigma.GraphicsMill.Codecs.PdfWriter writer = new Aurigma.GraphicsMill.Codecs.PdfWriter(@"C:\Mountain.pdf")) { using (Aurigma.GraphicsMill.Codecs.PdfFrame frame = new Aurigma.GraphicsMill.Codecs.PdfFrame()) { frame.Quality = 70; frame.SetBitmap(bitmap); writer.AddFrame(frame); } } }
Member Name | Description |
---|---|
Format1bppIndexed | 1 bit per pixel. Indexed. |
Format4bppIndexed | 4 bits per pixel. Indexed. |
Format8bppIndexed | 8 bits per pixel. Indexed. |
Format8bppGrayScale | 8 bits per pixel. Grayscale. 8 bits are used for luminosity level. |
Format24bppRgb | 24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. |
Format32bppCmyk | 32 bits per pixel. CMYK. 8 bits each are used for the cyan, magenta, yellow, and black components. |