ImageHelper.ExtractPixelSection Method
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Shared Function ExtractPixelSection ( _
sourcePixels As Byte(), _
sourceBitsPerPixel As Integer, _
sourceStride As Integer, _
sectionRect As Int32Rect, _
transparentColors As Color() _
) As Byte()
public static byte[] ExtractPixelSection(
byte[] sourcePixels,
int sourceBitsPerPixel,
int sourceStride,
Int32Rect sectionRect,
Color[] transparentColors
)
public:
static array<unsigned char>^ ExtractPixelSection(
array<unsigned char>^ sourcePixels,
int sourceBitsPerPixel,
int sourceStride,
Int32Rect sectionRect,
array<Color>^ transparentColors
)
static member ExtractPixelSection :
sourcePixels:byte[] *
sourceBitsPerPixel:int *
sourceStride:int *
sectionRect:Int32Rect *
transparentColors:Color[] -> byte[]
public static function ExtractPixelSection(
sourcePixels : byte[],
sourceBitsPerPixel : int,
sourceStride : int,
sectionRect : Int32Rect,
transparentColors : Color[]
) : byte[]
Parameters
- sourcePixels
Type: array<System.Byte[]
- sourceBitsPerPixel
Type: System.Int32
- sourceStride
Type: System.Int32
- sectionRect
Type: System.Windows.Int32Rect
- transparentColors
Type: array<System.Drawing.Color[]
Return Value
Type: array<System.Byte[]
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.