Classes | |
| class | image_base |
| Base class for different types of images. More... | |
| class | rgb |
| 24-bit RGB image. Packed data, red byte first (RGBRGB...) More... | |
| class | rgba |
| 32-bit RGBA image. Packed data, red byte first (RGBARGBA...) More... | |
| class | alpha |
| 8-bit alpha image. More... | |
| class | yuv |
Enumerations | |
| enum | filter_type { FILTER0 = 0, BOX = FILTER0, TRIANGLE, BELL, B_SPLINE, SOME_CUBIC, LANCZOS3, MITCHELL, FILTER_COUNT } |
Functions | |
| rgb * | create_rgb (int width, int height) |
| rgba * | create_rgba (int width, int height) |
| Make a system-memory 32-bit bitmap surface. Packed data, red byte first. | |
| alpha * | create_alpha (int width, int height) |
| Make a system-memory 8-bit bitmap surface. | |
| void | write_jpeg (tu_file *out, rgb *image, int quality) |
| Write the given image to the given out stream, in jpeg format. | |
| rgb * | read_jpeg (const char *filename) |
| Create and read a new image from the given filename, if possible. | |
| rgb * | read_jpeg (tu_file *in) |
| Create and read a new image from the stream. | |
| rgb * | read_swf_jpeg2_with_tables (jpeg::input *loader) |
| For reading SWF JPEG2-style image data, using pre-loaded headers stored in the given jpeg::input object. | |
| rgba * | read_swf_jpeg3 (tu_file *in) |
| For reading SWF JPEG3-style image data, like ordinary JPEG, but stores the data in rgba format. | |
| void | write_tga (tu_file *out, rgba *image) |
| Write a 32-bit Targa format bitmap. Dead simple, no compression. | |
| DSOEXPORT void | resample (rgb *out, int out_x0, int out_y0, int out_x1, int out_y1, rgb *in, float in_x0, float in_y0, float in_x1, float in_y1) |
| DSOEXPORT void | resample (rgba *out, int out_x0, int out_y0, int out_x1, int out_y1, rgba *in, float in_x0, float in_y0, float in_x1, float in_y1) |
| DSOEXPORT rgb * | read_swf_jpeg2 (tu_file *in) |
| For reading SWF JPEG2-style image data (slight variation on ordinary JPEG). | |
Variables | |
| struct image::filter_table | filter_table [] |
| filter_type | default_type = TRIANGLE |
| enum image::filter_type |
| DSOEXPORT alpha * image::create_alpha | ( | int | width, | |
| int | height | |||
| ) |
Make a system-memory 8-bit bitmap surface.
| DSOEXPORT rgb * image::create_rgb | ( | int | width, | |
| int | height | |||
| ) |
Make a system-memory 24-bit bitmap surface. 24-bit packed data, red byte first.
| DSOEXPORT rgba * image::create_rgba | ( | int | width, | |
| int | height | |||
| ) |
Make a system-memory 32-bit bitmap surface. Packed data, red byte first.
Create and read a new image from the stream.
| in | Stream to read from. Ownership to the caller, not needed after return. |
| DSOEXPORT rgb * image::read_jpeg | ( | const char * | filename | ) |
Create and read a new image from the given filename, if possible.
For reading SWF JPEG2-style image data (slight variation on ordinary JPEG).
| DSOEXPORT rgb * image::read_swf_jpeg2_with_tables | ( | jpeg::input * | j_in | ) |
For reading SWF JPEG2-style image data, using pre-loaded headers stored in the given jpeg::input object.
| void image::resample | ( | image::rgba * | out, | |
| int | out_x0, | |||
| int | out_y0, | |||
| int | out_x1, | |||
| int | out_y1, | |||
| image::rgba * | in, | |||
| float | in_x0, | |||
| float | in_y0, | |||
| float | in_x1, | |||
| float | in_y1 | |||
| ) |
| void image::resample | ( | image::rgb * | out, | |
| int | out_x0, | |||
| int | out_y0, | |||
| int | out_x1, | |||
| int | out_y1, | |||
| image::rgb * | in, | |||
| float | in_x0, | |||
| float | in_y0, | |||
| float | in_x1, | |||
| float | in_y1 | |||
| ) |
| DSOEXPORT void image::write_jpeg | ( | tu_file * | out, | |
| rgb * | image, | |||
| int | quality | |||
| ) |
| DSOEXPORT void image::write_tga | ( | tu_file * | out, | |
| rgba * | im | |||
| ) |
Write a 32-bit Targa format bitmap. Dead simple, no compression.
| filter_type image::default_type = TRIANGLE |
| struct image::filter_table image::filter_table[] |
1.5.4