SubImage(Point,Size,Single,Int32) Method
Creates a copy of part or all of the image with controlled size
public DicomImage SubImage(
System.Drawing.Point ,
System.Drawing.Size ,
System.float ,
System.int
)
public function SubImage(
: System.Drawing.Point;
: System.Drawing.Size;
: System.Single;
: System.Integer
): DicomImage;
public function SubImage(
: System.Drawing.Point,
: System.Drawing.Size,
: System.float,
: System.int
) : DicomImage;
public: DicomImage* SubImage(
System.Drawing.Point ,
System.Drawing.Size ,
System.float ,
System.int
)
public:
DicomImage^ SubImage(
System.Drawing.Point ,
System.Drawing.Size ,
System.float ,
System.int
)
'Declaration
Public Overloads Function SubImage( _
ByVal As System.Drawing.Point, _
ByVal As System.Drawing.Size, _
ByVal As System.Single, _
ByVal As System.Integer _
) As DicomImage
'Usage
Dim instance As DicomImage
Dim Offset As System.Drawing.Point
Dim Size As System.Drawing.Size
Dim Magnification As System.Single
Dim Frame As System.Integer
Dim value As DicomImage
value = instance.SubImage(Offset, Size, Magnification, Frame)
Parameters
- Offset
The left top corner point of the sub Image
- Size
The total size of the original image to capture
- Magnification
The zooming factor which determines the output size
- Frame
The frame number to use. This is 1-index, i.e. first frame is 1 not 0
Return Value
Target Platforms: .NET CLR 4.8 or higher