C# 클래스 BitMiracle.LibJpeg.JpegImage

상속: IDisposable
파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Dispose void
addSampleRow void
compress void
compress void
createFromBitmap void
createFromStream void
decompress void
fillDecompressedData void
fillSamplesFromBitmap void
initializeFromBitmap void
isCompressed bool
needCompressWith bool
processPixelFormat void

공개 메소드들

메소드 설명
Dispose ( ) : void

Frees and releases all resources allocated by this JpegImage

FromBitmap ( Bitmap bitmap ) : JpegImage

Creates JpegImage from .NET bitmap

Same as corresponding constructor.

GetRow ( int rowNumber ) : SampleRow

Retrieves the required row of image.

JpegImage ( Stream imageData ) : System

Creates JpegImage from stream with an arbitrary image data

JpegImage ( System bitmap ) : System

Creates JpegImage from .NET bitmap

JpegImage ( string fileName ) : System

Creates JpegImage from file with an arbitrary image

ToBitmap ( ) : Bitmap

Retrieves image as .NET Bitmap.

WriteBitmap ( Stream output ) : void

Writes decompressed image data as bitmap to stream.

WriteJpeg ( Stream output ) : void

Writes compressed JPEG image to stream.

WriteJpeg ( Stream output, CompressionParameters parameters ) : void

Compresses image to JPEG with given parameters and writes it to stream.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void
addSampleRow ( SampleRow row ) : void

Needs for DecompressorToJpegImage class

compress ( CompressionParameters parameters ) : void
compress ( IRawImage source, CompressionParameters parameters ) : void
createFromBitmap ( System bitmap ) : void
createFromStream ( Stream imageData ) : void
decompress ( ) : void
fillDecompressedData ( ) : void
fillSamplesFromBitmap ( ) : void
initializeFromBitmap ( Bitmap bitmap ) : void
isCompressed ( Stream imageData ) : bool

Checks if imageData contains jpeg image

needCompressWith ( CompressionParameters parameters ) : bool
processPixelFormat ( PixelFormat pixelFormat ) : void

메소드 상세

Dispose() 공개 메소드

Frees and releases all resources allocated by this JpegImage
public Dispose ( ) : void
리턴 void

FromBitmap() 공개 정적인 메소드

Creates JpegImage from .NET bitmap
Same as corresponding constructor.
public static FromBitmap ( Bitmap bitmap ) : JpegImage
bitmap System.Drawing.Bitmap Source .NET bitmap.
리턴 JpegImage

GetRow() 공개 메소드

Retrieves the required row of image.
public GetRow ( int rowNumber ) : SampleRow
rowNumber int The number of row.
리턴 SampleRow

JpegImage() 공개 메소드

Creates JpegImage from stream with an arbitrary image data
public JpegImage ( Stream imageData ) : System
imageData Stream Stream containing bytes of image in /// arbitrary format (BMP, Jpeg, GIF, PNG, TIFF, e.t.c)
리턴 System

JpegImage() 공개 메소드

Creates JpegImage from .NET bitmap
public JpegImage ( System bitmap ) : System
bitmap System Source .NET bitmap.
리턴 System

JpegImage() 공개 메소드

Creates JpegImage from file with an arbitrary image
public JpegImage ( string fileName ) : System
fileName string Path to file with image in /// arbitrary format (BMP, Jpeg, GIF, PNG, TIFF, e.t.c)
리턴 System

ToBitmap() 공개 메소드

Retrieves image as .NET Bitmap.
public ToBitmap ( ) : Bitmap
리턴 System.Drawing.Bitmap

WriteBitmap() 공개 메소드

Writes decompressed image data as bitmap to stream.
public WriteBitmap ( Stream output ) : void
output Stream Output stream.
리턴 void

WriteJpeg() 공개 메소드

Writes compressed JPEG image to stream.
public WriteJpeg ( Stream output ) : void
output Stream Output stream.
리턴 void

WriteJpeg() 공개 메소드

Compresses image to JPEG with given parameters and writes it to stream.
public WriteJpeg ( Stream output, CompressionParameters parameters ) : void
output Stream Output stream.
parameters CompressionParameters The parameters of compression.
리턴 void