Renders an image with alignment using a 1:1 ratio.
Declaration Syntax
C# | Visual Basic |
public static void RenderImageWithAlignment( Graphics g, Rectangle rect, Image image, ContentAlignment align )
Public Shared Sub RenderImageWithAlignment ( _ g As Graphics, _ rect As Rectangle, _ image As Image, _ align As ContentAlignment _ )
Parameters
- g (Graphics)
- Graphics object to render to
- rect (Rectangle)
- Rectangle representing the area where the content should be aligned
- image (Image)
- Image to render
- align (ContentAlignment)
- Alignment