C# Class Longkong.Utility.Imaging

Show file Open project: Longkong/Pojjaman

Public Methods

Method Description
CaptureActiveWindow ( ) : Image
CopyBitmapBitsUsingBitBlt ( Bitmap currentImage, Rectangle region ) : Bitmap
CopyImageBits ( Image currentImage, Rectangle region ) : Image
StretchImage ( Point p, Rectangle zoomRegion, Size desiredSize, RasterOperations opcode ) : Image
StretchImage ( Point p, Rectangle zoomRegion, Size desiredSize, RasterOperations opcode, bool captureLayeredWindows ) : Image

Private Methods

Method Description
BitBlt ( IntPtr targetDC, int targetX, int targetY, int targetWidth, int targetHeight, IntPtr sourceDC, int sourceStartX, int sourceStartY, RasterOperations ro ) : bool
CaptureScreenRegion ( Point location, Size size, RasterOperations opcode ) : Image
CreateCompatibleDC ( IntPtr hdc ) : IntPtr
DeleteDC ( IntPtr hdc ) : bool
DeleteObject ( IntPtr hObject ) : bool
GetDesktopWindow ( ) : IntPtr
GetWindowDC ( IntPtr windowHandle ) : IntPtr
GetWindowLong ( IntPtr hWnd, int nIndex ) : int
ReleaseDC ( IntPtr windowHandle, IntPtr dc ) : int
SelectObject ( IntPtr hdc, IntPtr hgdiobj ) : IntPtr
SetLayeredWindowAttributes ( HandleRef hwnd, int crKey, byte bAlpha, int dwFlags ) : bool
SetWindowLong ( IntPtr hWnd, int nIndex, int dwNewLong ) : int
ShowWindow ( IntPtr handle, int message ) : bool
StretchBlt ( IntPtr destDC, int dX, int dY, int dWidth, int dHeight, IntPtr sourceDC, int sX, int sY, int sWidth, int sHeight, RasterOperations ro ) : bool

Method Details

CaptureActiveWindow() public static method

public static CaptureActiveWindow ( ) : Image
return Image

CopyBitmapBitsUsingBitBlt() public static method

public static CopyBitmapBitsUsingBitBlt ( Bitmap currentImage, Rectangle region ) : Bitmap
currentImage System.Drawing.Bitmap
region System.Drawing.Rectangle
return System.Drawing.Bitmap

CopyImageBits() public static method

public static CopyImageBits ( Image currentImage, Rectangle region ) : Image
currentImage Image
region System.Drawing.Rectangle
return Image

StretchImage() public static method

public static StretchImage ( Point p, Rectangle zoomRegion, Size desiredSize, RasterOperations opcode ) : Image
p Point
zoomRegion System.Drawing.Rectangle
desiredSize System.Drawing.Size
opcode RasterOperations
return Image

StretchImage() public static method

public static StretchImage ( Point p, Rectangle zoomRegion, Size desiredSize, RasterOperations opcode, bool captureLayeredWindows ) : Image
p Point
zoomRegion System.Drawing.Rectangle
desiredSize System.Drawing.Size
opcode RasterOperations
captureLayeredWindows bool
return Image