Method ResizeNoScale
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.
public virtual void ResizeNoScale(SizeI size, PointI pos, RGBValue? color = null)
Parameters
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.