This method composes a panorama image from two raster images.
Public Function Panorama(bottomImage As System.Drawing.Image, topImage As System.Drawing.Image, cutMode As Integer, x11 As Integer, y11 As Integer, x12 As Integer, y12 As Integer, x21 As Integer, y21 As Integer, x22 As Integer, y22 As Integer, red As Byte, green As Byte, blue As Byte) As Boolean
public bool Panorama(System.Drawing.Image bottomImage, System.Drawing.Image topImage, int cutMode, int x11, int y11, int x12, int y12, int x21, int y21, int x22, int y22, int red, byte green, byte blue);
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 successful.
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 DestinationImage property.
This method only supports 24 bit images.