SbImage class that wraps the sb_t_image structure. You must call the Dispose() method to free all the...
int Height()
Height, in pixel, of the image.
SbImage Clone()
Clones the image.@
SbImage Convert(SbImageFormat format)
Converts the image to the specified format.
SbError Save(String^ filename)
Saves the image to file
static SbImage CreateHeader(int width, int height, int width_step, SbImageFormat format)
Creates the image header without allocating the data.
int BytesPerPixel()
Number of bytes of each pixel.
int WidthStep()
Number of bytes to move the pointer to one row to the next one.
SbError Flip(SbImage ^dst, SbImageFlipMode flipmode)
Flips the image
static SbImage Create(int width, int height, SbImageFormat format)
Creates an image.
int Size()
Dimension, in bytes, of the vector sb_t_image::data.
SbError Resize(SbImage ^dst, SbRect ^rect, float scale, SbInterpolationMode InterpolationMode)
Resizes the image
SbImage Compress(SbImageCompressType compression)
Compresses the image with the compression type specified.
SbError Rotate(SbImage ^dst, SbPoint ^centre, float angle, SbInterpolationMode InterpolationMode)
Rotates the image
static SbImage Load(String^ filename)
Loads an image from file.
SbImageCompressType Compression()
Image compression type
IntPtr Data()
Pointer to the data.
SbError SetData(IntPtr data)
Sets the pointer to a block of memory for image data.
SbImage Decompress()
Decompresses the image.
SbError Clean()
Cleans the image
int Width()
Width, in pixel, of the image.
SbError Copy(SbImage ^dst)
Copies the image content
SbImageFormat Format()
Format of the image pixel
Point class that wraps the sb_t_point structure
Rectangle class that wraps the sb_t_rect structure
Image rle segment enumeration that wraps the sb_t_rle_seg structure
unsigned int value
Value of the segment.
int length
Length of the segment.
int offset
Offset of the segment from the beginning of the uncompressed buffer, in bytes.
int y
y-coordinate of the beginning of the segment
int x
x-coordinate of the beginning of the segment
SbImageFlipMode
Image flip mode enumeration that wraps the sb_t_image_flip_mode enum
SbImageCompressType
Image compression type enumeration that wraps the sb_t_image_compress_type enum
SbInterpolationMode
Interpolation mode enumeration that wraps the sb_t_interpolation_mode enum
SbImageFormat
Image format enumeration that wraps the sb_t_image_format enum
@ SB_IMAGE_FLIP_HORIZONTAL
flips the image around horizontal axis.
@ SB_IMAGE_FLIP_VERTICAL
flips the image around vertical axis.
@ SB_IMAGE_FLIP_BOTH
flips the image around both horizontal and vertical axises, it is a rotation of 180 degree.
@ SB_IMAGE_COMPRESS_PNG
PNG compression.
@ SB_IMAGE_COMPRESS_RLE
RLE (Run Lenght Encoding) lossless compression.
@ SB_IMAGE_COMPRESS_JPEG
JPEG compression.
@ SB_IMAGE_COMPRESS_NONE
uncompressed or raw images
@ SB_INTERPOLATION_MODE_NN
Nearest neighbor pixel interpolation.
@ SB_INTERPOLATION_MODE_BILINEAR
Bilinear interpolation.
@ SB_IMAGE_FORMAT_BGR888
BGR: three channel, 8 bit per channel.
@ SB_IMAGE_FORMAT_UI32
unsigned int 32 bit
@ SB_IMAGE_FORMAT_RGB888
RGB: three channel, 8 bit per channel.
@ SB_IMAGE_FORMAT_BW8
BW: one channel, 8 bit per channel.