C# 클래스 csImb.Screenshots

파일 보기 프로젝트 열기: TNOCS/csTouch 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Screenshot IMB3.TEventEntry

공개 메소드들

메소드 설명
GetImageFromControl ( FrameworkElement controlToConvert ) : System.Windows.Media.Imaging.PngBitmapEncoder

Convert any control to a PngBitmapEncoder

GetImageOfControl ( Control controlToConvert ) : ImageSource

Get an ImageSource of a control

GetJpgImage ( FrameworkElement source, double scale, int quality ) : byte[]
InitChannel ( ) : bool
LoadBitmap ( Bitmap source ) : System.Windows.Media.Imaging.BitmapSource
ProcessScreenshot ( Image screenshot ) : void

Send a screenshot over the bus. Identical to TakeScreenshot, except that this method does not capture the screenshot itself.

SaveImageOfControl ( Control controlToConvert, string fileName ) : ImageSource

Save an image of a control

Start ( int interval ) : void
Stop ( ) : void

비공개 메소드들

메소드 설명
AddImageComment ( Stream jpegStreamIn, string propValue, int propId ) : Stream
CropImage ( Image img, Rectangle cropArea ) : Image
GetImageByteArray ( System.Windows.Media.Imaging.BitmapSource bi ) : byte[]
GetImageFromByteArray ( byte pixelInfo, int height, int width ) : System.Windows.Media.Imaging.BitmapSource
GetSubRectangle ( Image imgToDivide, int totalX, int totalY, int x, int y ) : Image
TakeScreenshot ( ) : void

Take a screenshot and send it over the bus.

TimerTick ( object sender, EventArgs e ) : void
WpfToRealPixels ( Window w, Point p ) : Point

Get screen from Window (uses WindowInteropHelper to get the handle from a Window).

resizeImage ( Image imgToResize, Size size ) : Image

메소드 상세

GetImageFromControl() 공개 정적인 메소드

Convert any control to a PngBitmapEncoder
public static GetImageFromControl ( FrameworkElement controlToConvert ) : System.Windows.Media.Imaging.PngBitmapEncoder
controlToConvert System.Windows.FrameworkElement The control to convert to an ImageSource
리턴 System.Windows.Media.Imaging.PngBitmapEncoder

GetImageOfControl() 공개 정적인 메소드

Get an ImageSource of a control
public static GetImageOfControl ( Control controlToConvert ) : ImageSource
controlToConvert System.Windows.Controls.Control The control to convert to an ImageSource
리턴 ImageSource

GetJpgImage() 공개 메소드

public GetJpgImage ( FrameworkElement source, double scale, int quality ) : byte[]
source System.Windows.FrameworkElement
scale double
quality int
리턴 byte[]

InitChannel() 공개 메소드

public InitChannel ( ) : bool
리턴 bool

LoadBitmap() 공개 정적인 메소드

public static LoadBitmap ( Bitmap source ) : System.Windows.Media.Imaging.BitmapSource
source System.Drawing.Bitmap
리턴 System.Windows.Media.Imaging.BitmapSource

ProcessScreenshot() 공개 메소드

Send a screenshot over the bus. Identical to TakeScreenshot, except that this method does not capture the screenshot itself.
public ProcessScreenshot ( Image screenshot ) : void
screenshot System.Drawing.Image Original image with 96x96 DPI
리턴 void

SaveImageOfControl() 공개 정적인 메소드

Save an image of a control
public static SaveImageOfControl ( Control controlToConvert, string fileName ) : ImageSource
controlToConvert System.Windows.Controls.Control The control to convert to an ImageSource
fileName string The location to save the image to
리턴 ImageSource

Start() 공개 메소드

public Start ( int interval ) : void
interval int
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

프로퍼티 상세

Screenshot 공개적으로 프로퍼티

public TEventEntry,IMB3 Screenshot
리턴 IMB3.TEventEntry