ASP Painter
Home
Home
Samples
Samples
Purchase
Purchase
Download
Download
Documentation
Documentation


ASPPainter ResizeCopy

ResizeCopy Statement:

Copy image part with resize

Object.ResizeCopy dstImage, srcImage, dstX, dstY, srcX, srcY, dstWidth, dstHeight, srcWidth, srcHeight

Parameters:

dstImage- destination image index [0..9]. The parameter selects the image where a part of the source image will be copied to.
srcImage- source image index [0..9]. The parameter selects the image where a part of the image will be copied from.
dstX - destination X coordinate defines where image part will be copied in the destination image
dstY - destination Y coordinate defines where image part will be copied in the destination image
srcX- source X coordinate defines where image part is to be copied from.
srcY- source Y coordinate defines where image part is to be copied from.
dstWidth, dstHeight - new width and new height of the image part in destination image
srcWidth,srcHeight-width and height of the image part in source image

Sample: Object.ResizeCopy 0, 1, 0, 0, 0, 0, 100, 100, 200, 200

This method copies a part of the source image to the destination image and changes image part dimensions. Source and destination images should exist. You can create image using the following methods: Create, LoadFile, LoadDatabase, LoadStream.

See also

CopyResize,Merge,SetImageIndex, LoadFile,LoadDatabase, LoadStream, Create, DestroyDestroyALL

More samples:


Copy Resize Merge
Cat, Copy, Copy, Copy with transparent, Files, Photo, Merge, Merge cat, Merge cat, Resize, Resize photo



home samples purchase documentation download