- 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
- 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.DrawContainer Method
Draws the specified GraphicsContainer at the location specified by the coordinate pair.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
C#
public void DrawContainer(
GraphicsContainer container,
float x,
float y
)
Parameters
- container
-
Type: Aurigma.GraphicsMill.Drawing.GraphicsContainer
A GraphicsContainer to draw.
- x
-
Type: System.Single
The x-coordinate of the upper-left corner of the drawn GraphicsContainer.
- y
-
Type: System.Single
The y-coordinate of the upper-left corner of the drawn GraphicsContainer.
Remarks
This method respects the container size. To verify if the content goes out of container bounds and will be croped, you can get the actual bounds by using the GetContentBounds() method.