This class represents a frame of the PDF format.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public NotInheritable Class PdfFrame _ Inherits Frame
public sealed class PdfFrame : Frame
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); } } }