Class jpeg_common_struct
Base class for both JPEG compressor and decompresor.
Inherited Members
Namespace: BitMiracle.LibJpeg.Classic
Assembly: BitMiracle.LibJpeg.NET.dll
Syntax
public abstract class jpeg_common_struct
Remarks
Routines that are to be used by both halves of the library are declared to receive an instance of this class. There are no actual instances of jpeg_common_struct, only of jpeg_compress_struct and jpeg_decompress_struct
Constructors
| Improve this Doc View Sourcejpeg_common_struct()
Base constructor.
Declaration
protected jpeg_common_struct()
See Also
| Improve this Doc View Sourcejpeg_common_struct(jpeg_error_mgr)
Base constructor.
Declaration
protected jpeg_common_struct(jpeg_error_mgr errorManager)
Parameters
Type | Name | Description |
---|---|---|
jpeg_error_mgr | errorManager | The error manager. |
See Also
Properties
| Improve this Doc View SourceCopyright
Gets the LibJpeg's copyright.
Declaration
public static string Copyright { get; }
Property Value
Type | Description |
---|---|
System.String | The copyright. |
Err
Error handler module.
Declaration
public jpeg_error_mgr Err { get; set; }
Property Value
Type | Description |
---|---|
jpeg_error_mgr | The error manager. |
See Also
| Improve this Doc View SourceIsDecompressor
Gets a value indicating whether this instance is Jpeg decompressor.
Declaration
public abstract bool IsDecompressor { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Progress
Progress monitor.
Declaration
public jpeg_progress_mgr Progress { get; set; }
Property Value
Type | Description |
---|---|
jpeg_progress_mgr | The progress manager. |
Remarks
Default value: null
.
Version
Gets the version of LibJpeg.
Declaration
public static string Version { get; }
Property Value
Type | Description |
---|---|
System.String | The version of LibJpeg. |
Methods
| Improve this Doc View SourceAllocJpegSamples(Int32, Int32)
Creates 2-D sample array.
Declaration
public static byte[][] AllocJpegSamples(int samplesPerRow, int numberOfRows)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samplesPerRow | The number of samples per row. |
System.Int32 | numberOfRows | The number of rows. |
Returns
Type | Description |
---|---|
System.Byte[][] | The array of samples. |
CreateBlocksArray(Int32, Int32)
Creates the array of blocks.
Declaration
public static jvirt_array<JBLOCK> CreateBlocksArray(int blocksPerRow, int numberOfRows)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | blocksPerRow | The number of blocks in row. |
System.Int32 | numberOfRows | The number of rows. |
Returns
Type | Description |
---|---|
jvirt_array<JBLOCK> | The array of blocks. |
See Also
| Improve this Doc View SourceCreateSamplesArray(Int32, Int32)
Creates the array of samples.
Declaration
public static jvirt_array<byte> CreateSamplesArray(int samplesPerRow, int numberOfRows)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samplesPerRow | The number of samples in row. |
System.Int32 | numberOfRows | The number of rows. |
Returns
Type | Description |
---|---|
jvirt_array<System.Byte> | The array of samples. |
ERREXIT(J_MESSAGE_CODE)
Used for fatal errors (print message and exit).
Declaration
public void ERREXIT(J_MESSAGE_CODE code)
Parameters
Type | Name | Description |
---|---|---|
J_MESSAGE_CODE | code | The message code. |
ERREXIT(J_MESSAGE_CODE, Object[])
Used for fatal errors (print message and exit).
Declaration
public void ERREXIT(J_MESSAGE_CODE code, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
J_MESSAGE_CODE | code | The message code. |
System.Object[] | args | The parameters of message. |
ERREXIT(Int32, Object[])
Used for fatal errors (print message and exit).
Declaration
public void ERREXIT(int code, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | code | The message code. |
System.Object[] | args | The parameters of message. |
jpeg_abort()
Abort processing of a JPEG compression or decompression operation, but don't destroy the object itself.
Closing a data source or destination, if necessary, is the application's responsibility.
Declaration
public void jpeg_abort()
jpeg_destroy()
Destruction of a JPEG object.
Closing a data source or destination, if necessary, is the application's responsibility.
Declaration
public void jpeg_destroy()
TRACEMS(Int32, J_MESSAGE_CODE)
Shows informational and debugging messages.
Declaration
public void TRACEMS(int lvl, J_MESSAGE_CODE code)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lvl | See emit_message(Int32) for description. |
J_MESSAGE_CODE | code | The message code. |
See Also
| Improve this Doc View SourceTRACEMS(Int32, J_MESSAGE_CODE, Object[])
Shows informational and debugging messages.
Declaration
public void TRACEMS(int lvl, J_MESSAGE_CODE code, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lvl | See emit_message(Int32) for description. |
J_MESSAGE_CODE | code | The message code. |
System.Object[] | args | The parameters of message. |
See Also
| Improve this Doc View SourceTRACEMS(Int32, Int32, Object[])
Shows informational and debugging messages.
Declaration
public void TRACEMS(int lvl, int code, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lvl | See emit_message(Int32) for description. |
System.Int32 | code | The message code. |
System.Object[] | args | The parameters of message. |
See Also
| Improve this Doc View SourceWARNMS(J_MESSAGE_CODE)
Used for non-fatal errors (we can keep going, but the data is probably corrupt).
Declaration
public void WARNMS(J_MESSAGE_CODE code)
Parameters
Type | Name | Description |
---|---|---|
J_MESSAGE_CODE | code | The message code. |
WARNMS(J_MESSAGE_CODE, Object[])
Used for non-fatal errors (we can keep going, but the data is probably corrupt).
Declaration
public void WARNMS(J_MESSAGE_CODE code, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
J_MESSAGE_CODE | code | The message code. |
System.Object[] | args | The parameters of message. |
WARNMS(Int32, Object[])
Used for non-fatal errors (we can keep going, but the data is probably corrupt).
Declaration
public void WARNMS(int code, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | code | The message code. |
System.Object[] | args | The parameters of message. |