←Select platform

PaintRegion(RasterImage,IntPtr,LeadRect,LeadRect,LeadRect,LeadRect,RasterPaintProperties) Method

Summary

Paints the image region to a Windows device context handle.

Syntax

C#
VB
C++
Public Overloads Shared Sub PaintRegion( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal hdc As IntPtr, _ 
   ByVal srcRect As Leadtools.LeadRect, _ 
   ByVal srcClipRect As Leadtools.LeadRect, _ 
   ByVal destRect As Leadtools.LeadRect, _ 
   ByVal destClipRect As Leadtools.LeadRect, _ 
   ByVal properties As Leadtools.Drawing.RasterPaintProperties _ 
)  

Parameters

image
The source image.

hdc
The destination Windows device context handle where the image data will be displayed.

srcRect
A Leadtools.LeadRect object that specifies the part of the image to use as the display source.

The coordinates in the srcRect rectangle are relative to the image. You can pass Rectangle.Empty to use the default, which matches the image.

srcClipRect
A Leadtools.LeadRect object specifies the portion of the display source to paint. Generally, this is used for updating the display when part of the source image has changed.

The coordinates in the srcClipRect rectangle are relative to the image. You can pass Rectangle.Empty to use the default, which matches the image

destRect
A Leadtools.LeadRect object that determines how the source rectangle is scaled and how the image is positioned in the destination hdc handle.

The coordinates in the destRect object are relative to the hdc handle. There is no default for this parameter. You must specify the Leadtools.LeadRect object.

destClipRect
A Leadtools.LeadRect object that specifies the portion of the display rectangle to paint. Generally, this is used for updating changes in the display surface, such as when a user moves another window, uncovering a part of the image that had been covered up.

The coordinates in the destClipRect are relative to the device context handle. You can pass Rectangle.Empty to use the default, which matches the device context handle. In most cases, however, you should use the rectangle returned by the .NET PaintEventArgs.ClipRectangle or Windows WM_PAINT message.

properties
Options for the display.

Remarks

This method works the same as Paint(rasterimage,graphics,leadrect,rasterpaintproperties), except that only the image region is painted.

Requirements

Target Platforms

Help Version 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Drawing Assembly