DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Blt Method
Image to copy pixel data from
Offset of this(base) image
Offset of the source image
Size of the pixel data in destination image
Alpha value for the source image when combined with this image. Valid values are ranging from 0 - 1, by default full opacity (1) is set
Example

In This Topic
    Blt Method
    In This Topic
    Combine pixel data of source image into this image as a base image
    Syntax
    'Declaration
     
    
    Public Function Blt( _
       ByVal sourceImage As DicomImage, _
       ByVal baseAreaOffset As System.Drawing.Point, _
       ByVal bltAreaOffset As System.Drawing.Point, _
       ByVal outputSize As System.Drawing.Size, _
       Optional ByVal opacity As System.Single _
    ) As DicomImage
    public DicomImage Blt( 
       DicomImage sourceImage,
       System.Drawing.Point baseAreaOffset,
       System.Drawing.Point bltAreaOffset,
       System.Drawing.Size outputSize,
       System.float opacity
    )

    Parameters

    sourceImage
    Image to copy pixel data from
    baseAreaOffset
    Offset of this(base) image
    bltAreaOffset
    Offset of the source image
    outputSize
    Size of the pixel data in destination image
    opacity
    Alpha value for the source image when combined with this image. Valid values are ranging from 0 - 1, by default full opacity (1) is set

    Return Value

    A copy of this image combined with the source image in user defined outputSize
    Exceptions
    ExceptionDescription
    Specific Exception for DICOM errors
    Remarks
    Source and base images' Frame and Zoom can be used to select the frames and zoom level when the images are combined
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    DicomImage image2 = new DicomImage("your_dicom_image2.dcm);
                        
    Point baseOffset = new Point(0, 0);
    Point bltOffset = new Point(512, 0);
    Size finalSize = new Size(1024, 512);
                        
    DicomImage blendedImage = image.Blt(image2, baseOffset, bltOffset, finalSize);
    blendedImage.Export("path_to_export_location_img.png", "png", 1);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also