Table of Contents

Method ResizeNoScale

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

ResizeNoScale(SizeI, PointI, RGBValue?)

Changes the size of the image in-place without scaling it by adding either a border with the given color or cropping as necessary.

void ResizeNoScale(SizeI size, PointI pos, RGBValue? color = null)

Parameters

size SizeI
pos PointI
color RGBValue?

RGB Color to fill background.

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. If color is null then use either the current mask color if set or find, use, and set a suitable mask color for any newly exposed areas.