ImageExtensionsZoom(Image, Size, GraphicsQualityContainer, Color) Method

Enlarges the source Image within the specified canvas size, preserving aspect ratio.

The resulting effect is equal than using Zoom for BackgroundImageLayout property.

Definition

Namespace: DevCase.Extensions.ImageExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Image Zoom(
	this Image image,
	Size size,
	GraphicsQualityContainer quality,
	Color fillColor
)

Parameters

image  Image

[Missing <param name="image"/> documentation for "M:DevCase.Extensions.ImageExtensions.ImageExtensions.Zoom(System.Drawing.Image,System.Drawing.Size,DevCase.Core.Media.Graphics.GraphicsQualityContainer,System.Drawing.Color)"]

size  Size

[Missing <param name="size"/> documentation for "M:DevCase.Extensions.ImageExtensions.ImageExtensions.Zoom(System.Drawing.Image,System.Drawing.Size,DevCase.Core.Media.Graphics.GraphicsQualityContainer,System.Drawing.Color)"]

quality  GraphicsQualityContainer
A GraphicsQualityContainer object that specifies the resulting image quality.
fillColor  Color
The color that will be used to fill any empty canvas space.

Return Value

Image
The resulting Image.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also