DicomObjects.NetStandard Documentation
DicomObjects Namespace / DicomDataSet Class / PrinterImage(Int32,Int32,Single,SKRectI,Boolean,Int32) Method

Bit depth of final image (must be 8-16, but always 8 when Planes=3)

1 for monochrome and 3 for colour

Zoom to apply to new image

The area of the original image to use

Controls whether Image Aspect Ratio is used - if true, then output pixels are square, but if false, then they retain their original aspect ratio

Choose which Frame of the MultiFrame Image to apply PrinterImage method




In This Topic
    PrinterImage(Int32,Int32,Single,SKRectI,Boolean,Int32) Method
    In This Topic
    Creates a copy of the image for printing or other purposes
    Syntax
    'Declaration
     
    
    Public Function PrinterImage( _
       ByVal Bits As Integer, _
       ByVal Planes As Integer, _
       ByVal Zoom As Single, _
       ByVal Area As SkiaSharp.SKRectI, _
       ByVal SquarePixels As Boolean, _
       ByVal Frame As Integer _
    ) As DicomDataSet
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Bits As Integer
    Dim Planes As Integer
    Dim Zoom As Single
    Dim Area As SkiaSharp.SKRectI
    Dim SquarePixels As Boolean
    Dim Frame As Integer
    Dim value As DicomDataSet
     
    value = instance.PrinterImage(Bits, Planes, Zoom, Area, SquarePixels, Frame)
    public DicomDataSet PrinterImage( 
       int Bits,
       int Planes,
       float Zoom,
       SkiaSharp.SKRectI Area,
       bool SquarePixels,
       int Frame
    )
    public:
    DicomDataSet^ PrinterImage( 
       int Bits,
       int Planes,
       float Zoom,
       SkiaSharp.SKRectI Area,
       bool SquarePixels,
       int Frame
    ) 

    Parameters

    Bits

    Bit depth of final image (must be 8-16, but always 8 when Planes=3)

    Planes

    1 for monochrome and 3 for colour

    Zoom

    Zoom to apply to new image

    Area

    The area of the original image to use

    SquarePixels

    Controls whether Image Aspect Ratio is used - if true, then output pixels are square, but if false, then they retain their original aspect ratio

    Frame

    Choose which Frame of the MultiFrame Image to apply PrinterImage method

    Return Value

    Remarks
    The copy is fully rendered and scaled to the chosen bit depth, so no further windowing is required. Only 8 bits are allowed when Planes=3 (RGB). Area refers to the original image � the size of the final image is the product of the cropped size and the chosen zoom. If the edges are given as 0, the full image is used.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also