Applies an image to the selected region, stretching the image to the selection size.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 8.0.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void ApplyImageToSelection(
	IEImage image,
	bool mergeAlpha,
	bool maintainAspectRatio,
	bool canStretch
)
Public Sub ApplyImageToSelection ( _
	image As IEImage, _
	mergeAlpha As Boolean, _
	maintainAspectRatio As Boolean, _
	canStretch As Boolean _
)
public:
void ApplyImageToSelection(
	IEImage^ image, 
	bool mergeAlpha, 
	bool maintainAspectRatio, 
	bool canStretch
)

Parameters

image
IEImage
Source image
mergeAlpha
Boolean
If true will merge the alpha channel of the pasted bitmap with the background bitmap.
maintainAspectRatio
Boolean
If maintainAspectRatio is False the inserted image will fill the entire selection. Set maintainAspectRatio to true to maintain the aspect ratio of the original bitmap.
canStretch
Boolean
canStretch determines whether a source image smaller than the selection is enlarged or maintains its original size. Note: has no effect if maintainAspectRatio is False (image will always be stretched)

See Also