#include <bitmap_image.h>
|
|
std::size_t | getWidth () const |
|
std::size_t | getHeight () const |
|
std::size_t | getSize () const |
|
const std::vector< std::vector< struct BitmapPixel > > & | getImage () const |
|
|
bool | parseDibFormat (const ResourceIcon &icon) |
|
bool | parseDibHeader (const ResourceIcon &icon, struct BitmapInformationHeader &res) const |
|
bool | parseDib1Data (const ResourceIcon &icon, const struct BitmapInformationHeader &hdr) |
|
bool | parseDib4Data (const ResourceIcon &icon, const struct BitmapInformationHeader &hdr) |
|
bool | parseDib8Data (const ResourceIcon &icon, const struct BitmapInformationHeader &hdr) |
|
bool | parseDib24Data (const ResourceIcon &icon, const struct BitmapInformationHeader &hdr) |
|
bool | parseDib32Data (const ResourceIcon &icon, const struct BitmapInformationHeader &hdr) |
|
bool | parseDibPalette (const ResourceIcon &icon, std::vector< struct BitmapPixel > &palette, std::uint32_t nColors) |
|
void | invertAxisY () |
|
void | setAlphaFull () |
|
bool | reduce8x8 () |
|
bool | averageRowPixels (std::size_t row, std::size_t offset, std::size_t nPixels, struct BitmapPixel &res) |
|
bool | averageColumnPixels (std::size_t column, std::size_t offset, std::size_t nPixels, struct BitmapPixel &res) |
|
void | greyScale () |
|
◆ averageColumnPixels()
bool retdec::fileformat::BitmapImage::averageColumnPixels |
( |
std::size_t |
column, |
|
|
std::size_t |
offset, |
|
|
std::size_t |
nPixels, |
|
|
struct BitmapPixel & |
res |
|
) |
| |
Average pixels in a column
- Parameters
-
column | A column to average pixels from (indexed from 0) |
offset | Row offset (indexed from 0) |
nPixels | Number of pixels |
res | Pixel to store the result to |
- Returns
true
on success, otherwise false
◆ averageRowPixels()
bool retdec::fileformat::BitmapImage::averageRowPixels |
( |
std::size_t |
row, |
|
|
std::size_t |
offset, |
|
|
std::size_t |
nPixels, |
|
|
struct BitmapPixel & |
res |
|
) |
| |
Average pixels in a row
- Parameters
-
row | A row to average pixels from (indexed from 0) |
offset | Column offset (indexed from 0) |
nPixels | Number of pixels |
res | Pixel to store the result to |
- Returns
true
on success, otherwise false
◆ getHeight()
std::size_t retdec::fileformat::BitmapImage::getHeight |
( |
| ) |
const |
Get image height
- Returns
- Image height
◆ getImage()
const std::vector< std::vector< struct BitmapPixel > > & retdec::fileformat::BitmapImage::getImage |
( |
| ) |
const |
◆ getSize()
std::size_t retdec::fileformat::BitmapImage::getSize |
( |
| ) |
const |
◆ getWidth()
std::size_t retdec::fileformat::BitmapImage::getWidth |
( |
| ) |
const |
Get image width
- Returns
- Image with
◆ greyScale()
void retdec::fileformat::BitmapImage::greyScale |
( |
| ) |
|
Converts image to greyscale
◆ invertAxisY()
void retdec::fileformat::BitmapImage::invertAxisY |
( |
| ) |
|
◆ parseDib1Data()
Parse a 1 bpp DIB data
- Parameters
-
icon | Icon to parse the data from |
hdr | DIB header structure |
- Returns
true
on success, otherwise false
◆ parseDib24Data()
Parse a 24 bpp DIB data
- Parameters
-
icon | Icon to parse the data from |
hdr | DIB header structure |
- Returns
true
on success, otherwise false
◆ parseDib32Data()
Parse a 32 bpp DIB data
- Parameters
-
icon | Icon to parse the data from |
hdr | DIB header structure |
- Returns
true
on success, otherwise false
◆ parseDib4Data()
Parse a 4 bpp DIB data
- Parameters
-
icon | Icon to parse the data from |
hdr | DIB header structure |
- Returns
true
on success, otherwise false
◆ parseDib8Data()
Parse a 8 bpp DIB data
- Parameters
-
icon | Icon to parse the data from |
hdr | DIB header structure |
- Returns
true
on success, otherwise false
◆ parseDibFormat()
bool retdec::fileformat::BitmapImage::parseDibFormat |
( |
const ResourceIcon & |
icon | ) |
|
Parse image in DIB format and converts it to unified BMP
- Parameters
-
- Returns
true
on success, otherwise false
◆ parseDibHeader()
Parse a DIB header
- Parameters
-
icon | Icon to parse the header from |
res | DIB header structure to store the result to |
- Returns
true
on success, otherwise false
◆ parseDibPalette()
bool retdec::fileformat::BitmapImage::parseDibPalette |
( |
const ResourceIcon & |
icon, |
|
|
std::vector< struct BitmapPixel > & |
palette, |
|
|
std::uint32_t |
nColors |
|
) |
| |
Parse a DIB palette
- Parameters
-
icon | Icon to parse the palette from |
palette | Palette structure to store the result to |
nColors | The expected number of colors in palette |
- Returns
true
on success, otherwise false
◆ reduce8x8()
bool retdec::fileformat::BitmapImage::reduce8x8 |
( |
| ) |
|
Reduces an image to 8x8
- Returns
true
on success, otherwise false
◆ setAlphaFull()
void retdec::fileformat::BitmapImage::setAlphaFull |
( |
| ) |
|
Set image alpha channel to 0xFF
◆ image
std::vector<std::vector<struct BitmapPixel> > retdec::fileformat::BitmapImage::image |
|
private |
bitmap image map row x column
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/fileformat/types/resource_table/bitmap_image.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/fileformat/types/resource_table/bitmap_image.cpp