Aurigma Graphics Mill 5.5 for .NET
PdfFrame Class
This class represents a frame of the PDF format.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Examples
The same, but using PdfWriter class. This class provides more flexible file saving support. In particular, you can use asynchronous mode, etc.
Visual Basic
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()
C#
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);
}
}
}
Inheritance Hierarchy
System..::.Object
L
Aurigma.GraphicsMill..::.LockableObject
L
Aurigma.GraphicsMill.Codecs..::.Frame
L
Aurigma.GraphicsMill.Codecs..::.PdfFrame
Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.


