Table of Contents

Method SizeNoScale

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

SizeNoScale(SizeI, PointI, RGBValue?)

Returns a resized version of this image without scaling it by adding either a border with the given color or cropping as necessary.

GenericImage SizeNoScale(SizeI size, PointI pos = default, RGBValue? color = null)

Parameters

size SizeI

New size.

pos PointI

Position in the new image.

color RGBValue?

Fill color.

Returns

GenericImage

Resized image.

Remarks

The image is pasted into a new image with the given size and background color at the position pos relative to the upper left of the new image.