Visual Basic (Declaration) | |
---|---|
Overloads Public Sub PaintImageRegionEffect( _ ByVal g As Graphics, _ ByVal image As RasterImage, _ ByVal src As Rectangle, _ ByVal srcClip As Rectangle, _ ByVal dest As Rectangle, _ ByVal destClip As Rectangle, _ ByVal paintProperties As RasterPaintProperties, _ ByVal effectType As SpecialEffectsType, _ ByVal progressCallback As SpecialEffectsProgress _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void PaintImageRegionEffect( Graphics g, RasterImage image, Rectangle src, Rectangle srcClip, Rectangle dest, Rectangle destClip, RasterPaintProperties paintProperties, SpecialEffectsType effectType, SpecialEffectsProgress progressCallback ) |
Managed Extensions for C++ | |
---|---|
public: void PaintImageRegionEffect( Graphics g, RasterImage image, Rectangle src, Rectangle srcClip, Rectangle dest, Rectangle destClip, RasterPaintProperties paintProperties, SpecialEffectsType effectType, SpecialEffectsProgress* progressCallback ) |
C++/CLI | |
---|---|
public: void PaintImageRegionEffect( Graphics g, RasterImage image, Rectangle src, Rectangle srcClip, Rectangle dest, Rectangle destClip, RasterPaintProperties paintProperties, SpecialEffectsType effectType, SpecialEffectsProgress^ progressCallback ) |
Parameters
- g
- The destination Graphics object.
- image
- Pointer to an object that references the bitmap that has the region to paint.
- src
- Rectangle to be used as the display source rectangle that specifies the part of the image to use as the display source.
- srcClip
- Rectangle to be used as the display source clipping rectangle. The display source clipping rectangle specifies the portion of the display source to be painted. Generally, this is used for updating the display when part of the source image has changed.
- dest
- Rectangle to be used as the display destination rectangle that determines how the source rectangle is scaled and how the image is positioned in the device context. The coordinates for the Rectangle object are relative to the device context. There is no default for this parameter. You must specify the Rectangle object.
- destClip
- Rectangle to be used as the display destination clipping rectangle 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 for the Rectangle object are relative to the device context. You can pass null to use the default, which matches the device context.
- paintProperties
- Options for the display.
- effectType
- Effect to apply when painting. For valid values, refer to SpecialEffectsType.
- progressCallback
- Callback method that will be called when the paint image effect is started to determine the status for the paint of the image effect.
This example shows the minimum requirements for using PaintImageRegionEffect method to paint an image .
Visual Basic | Copy Code |
---|---|
Public Sub PaintImageRegionEffect(ByVal g As Graphics, ByVal destRect As Rectangle) |
C# | Copy Code |
---|---|
public void PaintImageRegionEffect(Graphics g, Rectangle destRect) |
Multipass painting for the PushClass is disabled.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family