This method composes a panorama image from two raster images.
Parameters
bottomImage
the image on which another image is attached (24
bit only)
topImage
the raster image that is attached (24 bit
only)
cutMode
Sets whether or not topImage parameter will be
cut at the attachment location and if so which portion of topImage
parameter will be cut
For horizontal attachments (0: no cut, 1: cut
left portion, 2: cut right portion)
For vertical attachments (0: no cut, 1: cut lower
portion, 2: cut upper portion)
x11,y11
The location of the first point of attachment for
bottomImage (in pixels)
x12,y12
The location of the second point of attachment
for bottomImage (in pixels)
x21,y21
The location of the first point of attachment for
topImage (in pixels)
x22,y22
The location of the second point of attachment
for topImage (in pixels)
red
Sets the red component of the RGB value of the
background color (from 0 to 255).
This is the area of the panorama image that is
not part of either bottomImage or topImage
green
Sets the green component of the RGB value of the
background color (from 0 to 255).
This is the area of the panorama image that is
not part of either bottomImage or topImage
blue
Sets the blue component of the RGB value of the
background color (from 0 to 255).
This is the area of the panorama image that is
not part of either bottomImage or topImage
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The Panorama method composes a panorama from two raster images.
To execute the Panorama method, set the image handle of the base image into the BottomImage parameter. Set the image handle of the image you wish to attach to the base image into the TopImage parameter. Set the attachment location on BottomImage and TopImage. The Panorama method will attach the TopImage to the BottomImage at the location specified.
The cutMode parameter determines if any portion of TopImage will be cut off. If CutMode=0 then no portion of TopImage will be cut.
If the attachment is horizontal, i.e. the first attachment point is to the left of the second attachment point, then if CutMode=1, the portion of topImage to the left of the attachment location will be cut off. If CutMode=2, the portion of topImage to the right of the attachment location will be cut off.
If the attachment is vertical, i.e. the first attachment point is to the above the second attachment point, then if CutMode=1, the portion of topImage below the attachment location will be cut off. If CutMode=2, the portion of topImage above the attachment location will be cut off.
If successful the resulting raster image data is set in the LayerNumber property (the Image property or the Layer(LayerNumber).Image) property.
This method only supports 24 bit images.