C# Class Fusion8.Cropper.Core.ImageCapture

Represents a class for managing the capturing and saving of screenshots.
Inheritance: System.ComponentModel.Component, IPersistableOutput
Afficher le fichier Open project: enriquein/Cropper Class Usage Examples

Private Properties

Свойство Type Description
AbortThumb bool
CaptureByHdc void
CreateThumbnailImage Image
EnsureOutputsLoaded void
IPersistableOutput void
InitializeComponent void
ProcessCapturedImage Fusion8.Cropper.Extensibility.ImageCapturedEventArgs

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Capture() public méthode

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
Résultat void

Capture() public méthode

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.
Résultat void

Capture() public méthode

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
Résultat void

Capture() public méthode

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.
Résultat void

Capture() public méthode

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
Résultat void

Capture() public méthode

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.
Résultat void

CaptureDesktop() public méthode

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public CaptureDesktop ( ) : void
Résultat void

CaptureForegroundForm() public méthode

Captures a screenshot and raises events that notify the loaded plugin.
Thrown when the /// has not been properly set.
public CaptureForegroundForm ( ) : void
Résultat void

CaptureWindowAtPoint() public méthode

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
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FetchOutputStream() public méthode

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.
Résultat void

ImageCapture() public méthode

public ImageCapture ( ) : System
Résultat System

ImageCapture() public méthode

public ImageCapture ( IContainer container ) : System
container IContainer
Résultat System

OnImageCaptureInitialized() protected méthode

protected OnImageCaptureInitialized ( ImageCaptureInitializedEventArgs e ) : void
e ImageCaptureInitializedEventArgs
Résultat void

OnImageCaptured() protected méthode

protected OnImageCaptured ( Fusion8.Cropper.Extensibility.ImageCapturedEventArgs e ) : void
e Fusion8.Cropper.Extensibility.ImageCapturedEventArgs
Résultat void

OnImageCapturing() protected méthode

protected OnImageCapturing ( ImageCapturingEventArgs e ) : void
e ImageCapturingEventArgs
Résultat void