C# Класс Fusion8.Cropper.Core.ImageCapture

Represents a class for managing the capturing and saving of screenshots.
Наследование: System.ComponentModel.Component, IPersistableOutput
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AbortThumb bool
CaptureByHdc void
CreateThumbnailImage Image
EnsureOutputsLoaded void
IPersistableOutput void
InitializeComponent void
ProcessCapturedImage Fusion8.Cropper.Extensibility.ImageCapturedEventArgs

Открытые методы

Метод Описание
Capture ( Point location, Size size ) : void

Captures a screenshot and raises events that notify the loaded plugin.

Capture ( Point location, Size size, double maxThumbnailSize ) : void

Captures a screenshot and raises events that notify the loaded plugin.

Capture ( Rectangle captureArea ) : void

Captures a screenshot and raises events that notify the loaded plugin.

Capture ( Rectangle captureArea, double maxThumbnailSize ) : void

Captures a screenshot and raises events that notify the loaded plugin.

Capture ( int x, int y, int width, int height ) : void

Captures a screenshot and raises events that notify the loaded plugin.

Capture ( int x, int y, int width, int height, double maxThumbnailSize ) : void

Captures a screenshot and raises events that notify the loaded plugin.

CaptureDesktop ( ) : void

Captures a screenshot and raises events that notify the loaded plugin.

CaptureForegroundForm ( ) : void

Captures a screenshot and raises events that notify the loaded plugin.

CaptureWindowAtPoint ( Point windowLocation ) : void

Captures a screenshot and raises events that notify the loaded plugin.

FetchOutputStream ( StreamHandler streamHandler, string fileName, Image image ) : void

Retrieves a stream for saving an image.

ImageCapture ( ) : System
ImageCapture ( IContainer container ) : System

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnImageCaptureInitialized ( ImageCaptureInitializedEventArgs e ) : void
OnImageCaptured ( Fusion8.Cropper.Extensibility.ImageCapturedEventArgs e ) : void
OnImageCapturing ( ImageCapturingEventArgs e ) : void

Приватные методы

Метод Описание
AbortThumb ( ) : bool
CaptureByHdc ( IntPtr hdc, bool cropAndColor ) : void
CreateThumbnailImage ( Image image, double maxSize ) : Image
EnsureOutputsLoaded ( ) : void
IPersistableOutput ( ImageHandler imageHandler ) : void

Retrieves another cropped image once a capture has been initialized.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ProcessCapturedImage ( Image image, double maxThumbnailSize ) : Fusion8.Cropper.Extensibility.ImageCapturedEventArgs

Описание методов

Capture() публичный Метод

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public Capture ( Point location, Size size ) : void
location Point
size System.Drawing.Size
Результат void

Capture() публичный Метод

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public Capture ( Point location, Size size, double maxThumbnailSize ) : void
location Point
size System.Drawing.Size
maxThumbnailSize double A double representing the maximum thumbnail size.
Результат void

Capture() публичный Метод

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public Capture ( Rectangle captureArea ) : void
captureArea System.Drawing.Rectangle
Результат void

Capture() публичный Метод

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public Capture ( Rectangle captureArea, double maxThumbnailSize ) : void
captureArea System.Drawing.Rectangle
maxThumbnailSize double A double representing the maximum thumbnail size.
Результат void

Capture() публичный Метод

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public Capture ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
Результат void

Capture() публичный Метод

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public Capture ( int x, int y, int width, int height, double maxThumbnailSize ) : void
x int
y int
width int
height int
maxThumbnailSize double A double representing the maximum thumbnail size.
Результат void

CaptureDesktop() публичный Метод

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public CaptureDesktop ( ) : void
Результат void

CaptureForegroundForm() публичный Метод

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public CaptureForegroundForm ( ) : void
Результат void

CaptureWindowAtPoint() публичный Метод

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public CaptureWindowAtPoint ( Point windowLocation ) : void
windowLocation Point
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

FetchOutputStream() публичный Метод

Retrieves a stream for saving an image.
public FetchOutputStream ( StreamHandler streamHandler, string fileName, Image image ) : void
streamHandler StreamHandler A Delegate containg the method to call /// when the stream is retrieved and the image to pass to the callback.
fileName string The image's file name.
image Image The image to return to the callback method.
Результат void

ImageCapture() публичный Метод

public ImageCapture ( ) : System
Результат System

ImageCapture() публичный Метод

public ImageCapture ( IContainer container ) : System
container IContainer
Результат System

OnImageCaptureInitialized() защищенный Метод

protected OnImageCaptureInitialized ( ImageCaptureInitializedEventArgs e ) : void
e ImageCaptureInitializedEventArgs
Результат void

OnImageCaptured() защищенный Метод

protected OnImageCaptured ( Fusion8.Cropper.Extensibility.ImageCapturedEventArgs e ) : void
e Fusion8.Cropper.Extensibility.ImageCapturedEventArgs
Результат void

OnImageCapturing() защищенный Метод

protected OnImageCapturing ( ImageCapturingEventArgs e ) : void
e ImageCapturingEventArgs
Результат void