C# Class Fusion8.Cropper.Core.ImageCapture

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

Private Properties

Property Type Description
AbortThumb bool
CaptureByHdc void
CreateThumbnailImage Image
EnsureOutputsLoaded void
IPersistableOutput void
InitializeComponent void
ProcessCapturedImage Fusion8.Cropper.Extensibility.ImageCapturedEventArgs

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

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
return void

Capture() public method

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.
return void

Capture() public method

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
return void

Capture() public method

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.
return void

Capture() public method

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
return void

Capture() public method

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.
return void

CaptureDesktop() public method

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

CaptureForegroundForm() public method

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

CaptureWindowAtPoint() public method

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
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

FetchOutputStream() public method

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.
return void

ImageCapture() public method

public ImageCapture ( ) : System
return System

ImageCapture() public method

public ImageCapture ( IContainer container ) : System
container IContainer
return System

OnImageCaptureInitialized() protected method

protected OnImageCaptureInitialized ( ImageCaptureInitializedEventArgs e ) : void
e ImageCaptureInitializedEventArgs
return void

OnImageCaptured() protected method

protected OnImageCaptured ( Fusion8.Cropper.Extensibility.ImageCapturedEventArgs e ) : void
e Fusion8.Cropper.Extensibility.ImageCapturedEventArgs
return void

OnImageCapturing() protected method

protected OnImageCapturing ( ImageCapturingEventArgs e ) : void
e ImageCapturingEventArgs
return void