- About Graphics Mill
- What's New?
- Breaking Changes in Graphics Mill 12
- Breaking Changes in Graphics Mill 11
- Features
- Supported File Formats
- System Requirements
- Getting Started
- Working with Image Formats
- Transforming Images (Resize, Rotate, Crop)
- Working with Metadata
- Color Management and Color Reduction
- Drawing Text and Graphics
- Color Keying (Green Screen Removal)
- Channels and Pixel Data
- Color and Tone Correction
- Working with Photoshop (PSD) Files
- Image Filters
- Processing Large Images
- Basics of Image Processing
- Troubleshooting
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Codecs.ClippingPath Namespace
- Aurigma.GraphicsMill.Codecs.Psd Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- ArtTextFrame Class
- AutoSizeAnchor Enumeration
- AutoSizeMode Enumeration
- BeginDrawEventArgs Class
- BoundedText Class
- Brush Class
- CharInfo Class
- CharStyle Class
- ClippingPathCollection Class
- ColorStop Class
- ContainerItem Class
- ContainerItemCollection Class
- CopyfittingMode Enumeration
- CustomFontRegistry Class
- DigitType Enumeration
- DoublePathText Class
- DoublePathTextFrame Class
- Drawer Class
- DrawEventArgs Class
- EndDrawEventArgs Class
- FallbackFontCollection Class
- FamilyStyleCollisionPolicy Enumeration
- FillingRule Enumeration
- FirstBaselineOffset Enumeration
- Font Class
- FontAddResult Class
- FontAddStatus Enumeration
- FontFallbackException Class
- FontInfo Class
- FontMetrics Class
- FontMissingEventArgs Class
- FontRegistry Class
- GradientBrush Class
- Graphics Class
- Graphics Members
- Graphics Methods
- Clear Method
- CreateFont Method
- Dispose Method
- DrawBezier Method
- DrawBeziers Method
- DrawContainer Method
- DrawEllipse Method
- DrawEllipses Method
- DrawImage Method
- DrawImage Method (Bitmap, RectangleF)
- DrawImage Method (Pipeline, RectangleF)
- DrawImage Method (Bitmap, RectangleF, Single)
- DrawImage Method (Bitmap, Single, Single)
- DrawImage Method (Pipeline, RectangleF, Single)
- DrawImage Method (Pipeline, Single, Single)
- DrawImage Method (Bitmap, Single, Single, Single)
- DrawImage Method (Pipeline, Single, Single, Single)
- DrawLine Method
- DrawLines Method
- DrawPath Method
- DrawPolygon Method
- DrawRectangle Method
- DrawRectangles Method
- DrawText Method
- FillBezier Method
- FillBeziers Method
- FillEllipse Method
- FillEllipses Method
- FillPath Method
- FillPolygon Method
- FillRectangle Method
- FillRectangles Method
- Graphics Properties
- GraphicsContainer Class
- ImageItem Class
- IndexedColorCollection Class
- InstalledFontRegistry Class
- InvalidStyleValueException Class
- Item Class
- Layer Class
- LinearGradientBrush Class
- LineCap Enumeration
- LineJoin Enumeration
- MainPath Enumeration
- OpenTypeFeature Structure
- OpenTypeFeatureTag Enumeration
- ParagraphStyle Class
- Path Class
- PathBoundedText Class
- PathPoint Structure
- PathPointCollection Class
- PathPointType Enumeration
- PathText Class
- PathTextAlignment Enumeration
- PathTextFrame Class
- Pen Class
- PlainText Class
- PointTextFrame Class
- PostscriptNameCollisionPolicy Enumeration
- RadialGradientBrush Class
- ShapeItem Class
- ShapeTextFrame Class
- SoftMask Class
- SoftMaskMethod Enumeration
- SolidBrush Class
- StringMeasure Structure
- Text Class
- TextAlignment Enumeration
- TextDirection Enumeration
- TextException Class
- TextFrame Class
- TextItem Class
- TextOrientation Enumeration
- TilingBrush Class
- UnknownStyleNameException Class
- UnknownTagException Class
- VerticalAlignment Enumeration
- Aurigma.GraphicsMill.Drawing.Art Namespace
- Aurigma.GraphicsMill.Drawing.Effects Namespace
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Templates Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Licensing
- End User License Agreement
- Copyright Notices
Graphics.DrawImage Method (Pipeline, RectangleF)
Draws an image produced by a pipeline on the Graphics.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
C#
public void DrawImage(
Pipeline pipeline,
RectangleF dstRect
)
Parameters
- pipeline
-
Type: Aurigma.GraphicsMill.Pipeline
A Pipeline producing image to draw.
- dstRect
-
Type: System.Drawing.RectangleF
A RectangleF structure that specifies the location and size of the drawn image. The image is scaled to fit the rectangle.
Remarks
The image is drawn to destination rectangle on this Graphics. If the current image dimensions differ from dimensions of the destination rectangle, the image will be resized to have the same size as the destination rectangle.
If you want this method to calculate width and/or height automatically, you can pass 0s as the dstRect rectangle dimensions. The image dimensions will be calculated with the following way:
- If both width and heigth are
0, the source image dimensions will be taken. This way the image will not be resized during drawing. - If only one of arguments is
0, this argument will be calculated as to save image proportion. For example, the source image is800x600, and you pass400as width and0as height. Height will be calculated to preserve aspect ratio of the image, i.e. it will be300.