- 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
- AmbiguousFontCollisionException Class
- Bitmap Class
- Bitmap Members
- Bitmap Constructor
- Bitmap Methods
- ApplyTransform Method
- Draw Method
- DrawOn Method
- DrawOn Method (Graphics, Int32, Int32, CombineMode)
- DrawOn Method (IntPtr, Int32, Int32, CombineMode)
- DrawOn Method (Graphics, Rectangle, CombineMode, Single, ResizeInterpolationMode)
- DrawOn Method (Graphics, Int32, Int32, CombineMode, Single)
- DrawOn Method (IntPtr, Rectangle, CombineMode, Single, ResizeInterpolationMode)
- DrawOn Method (IntPtr, Int32, Int32, CombineMode, Single)
- DrawOn Method (Graphics, Rectangle, Rectangle, CombineMode, Single, ResizeInterpolationMode)
- DrawOn Method (IntPtr, Rectangle, Rectangle, CombineMode, Single, ResizeInterpolationMode)
- DrawOn Method (Graphics, Int32, Int32, Int32, Int32, CombineMode, Single, ResizeInterpolationMode)
- DrawOn Method (IntPtr, Int32, Int32, Int32, Int32, CombineMode, Single, ResizeInterpolationMode)
- DrawOn Method (Graphics, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, CombineMode, Single, ResizeInterpolationMode)
- DrawOn Method (IntPtr, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, CombineMode, Single, ResizeInterpolationMode)
- Fill Method
- FromClipboard Method
- FromHdc Method
- GetGraphics Method
- GetObjectData Method
- GetPixel Method
- Save Method
- SaveToClipboard Method
- SetPixel Method
- ToGdiPlusBitmap Method
- Bitmap Operators
- Bitmap Properties
- Bitmap Events
- BitmapEmptyException Class
- BitmapStatisticsProvider Class
- Channel Enumeration
- ChannelCombiner Class
- ChannelSplitter Class
- ChannelsProvider Class
- CMAdobeModuleLoadException Class
- CMException Class
- CMInappropriateProfileException Class
- CMOpenProfileException Class
- CMTransformException Class
- Cmyk16Color Class
- CmykChannelCombiner Class
- CmykChannelSplitter Class
- CmykColor Class
- CodecAdapter Class
- Color Class
- ColorAdjustmentProvider Class
- ColorManagementProvider Class
- ColorPalette Class
- ColorPaletteEmptyException Class
- ColorPaletteType Enumeration
- ColorProfile Class
- ColorProfileClass Enumeration
- ColorSpace Enumeration
- CompressedImage Class
- CompressedStream Class
- Configuration Class
- DuplicateFamilyStyleException Class
- DuplicateFontAliasException Class
- DuplicatePostscriptNameException Class
- FamilyStyleConflict Class
- FontException Class
- FontMissingException Class
- GMException Class
- GraphicsContainerRasterizer Class
- Grayscale16Color Class
- GrayscaleChannelCombiner Class
- GrayscaleChannelSplitter Class
- GrayscaleColor Class
- Histogram Class
- HistogramMode Enumeration
- IImageDescriptor Interface
- IImageParams Interface
- Image Class
- ImageGenerator Class
- ImageParams Class
- IndexedColor Class
- Ink Class
- InvalidPropertyValueException Class
- InvalidSourceException Class
- Lab16Color Class
- LabChannelCombiner Class
- LabChannelSplitter Class
- LabColor Class
- MissingIndexColorException Class
- ObjectClosedException Class
- ObjectEmptyException Class
- OnInitEventArgs Class
- OutOfMemoryException Class
- Pipeline Class
- PipelineElement Class
- PipelineException Class
- PixelFormat Class
- PostscriptNameConflict Class
- ProgressEventArgs Class
- ProgressReporter Class
- Rational Class
- Rgb16Color Class
- RgbChannelCombiner Class
- RgbChannelSplitter Class
- RgbColor Class
- SehException Class
- SpotColor Class
- TransformException Class
- TransformsProvider Class
- TrialPeriodTimeException Class
- UnexpectedException Class
- Unit Enumeration
- UnitConverter Class
- UnsignedRational Class
- UnsupportedFontException Class
- UnsupportedPixelFormatException Class
- Win32Exception Class
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Codecs.ClippingPath Namespace
- Aurigma.GraphicsMill.Codecs.Psd Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- Aurigma.GraphicsMill.Drawing.Art Namespace
- Aurigma.GraphicsMill.Drawing.Effects Namespace
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Templates Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Aurigma.GraphicsMill Namespace
- Licensing
- End User License Agreement
- Copyright Notices
Bitmap.DrawOn Method (Graphics, Int32, Int32, CombineMode, Single)
Draws the current bitmap on a given System.Drawing.Graphics object (standard .NET class for drawing).
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
public void DrawOn(
Graphics destinationGraphics,
int destinationX,
int destinationY,
CombineMode combine,
float opacity
)
Parameters
- destinationGraphics
-
Type: System.Drawing.Graphics
A System.Drawing.Graphics object on which the current bitmap should be drawn.
- destinationX
-
Type: System.Int32
The x-coordinate of the upper-left corner of the drawn image.
- destinationY
-
Type: System.Int32
The y-coordinate of the upper-left corner of the drawn image.
- combine
- The images blending algorithm (plain pixels copying, alpha blending, bitwise operations, etc).
- opacity
-
Type: System.Single
The opacity of the image in range[0, 1]. If0, image is completely transparent, if1, image is completely opaque.
Remarks
The bitmap is drawn to the destination rectangle on the given System.Drawing.Graphics object with dimensions equal to the dimensions of the bitmap.
If the bitmap has pixel format which is not GDI-compatible (e.g. extended pixel formats, CMYK, etc) method will automatically create a copy converted to the Format32bppArgb. That's why you always get it drawn, but if you are going to call this method multiple times, it is recommended to convert the bitmap to some GDI-compatible format (like Format32bppArgb) to increase the performance.