wxWidgets/tests/image
Vadim Zeitlin 3ffc739e0e Only read BMP pixel data from stream in LoadBMPData()
This makes the code much more clear: LoadDib() now reads all the header
data while LoadBMPData() reads bitmap data only and doesn't read any
header values any more, unlike before.

It also allows not to have to pass neither bmpOffset nor IsBmp
parameters to LoadBMPData(), making its argument list much more
reasonable.

Finally, and, most importantly, it fixes loading bitmaps using
BI_BITFIELDS that was broken back in cccda9ef6b (Fix loading colour
palette from BMP file, 2019-12-28).

This commit also adds a unit test checking that this doesn't get broken
again without anyone noticing.

See #18634.

Closes #22499.
2022-06-08 23:49:18 +01:00
..
8bpp-colorsused-large.bmp Fix loading bitmaps with malformed biClrUsed field 2021-11-06 16:12:04 +01:00
8bpp-colorsused-negative.bmp Fix loading bitmaps with malformed biClrUsed field 2021-11-06 16:12:04 +01:00
bitfields.bmp Only read BMP pixel data from stream in LoadBMPData() 2022-06-08 23:49:18 +01:00
cross_bicubic_256x256.png
cross_bilinear_256x256.png
cross_box_average_256x256.png
cross_nearest_neighb_256x256.png
horse_bicubic_50x50.png
horse_bicubic_100x100.png
horse_bicubic_150x150.png
horse_bicubic_300x300.png
horse_bilinear_50x50.png
horse_bilinear_100x100.png
horse_bilinear_150x150.png
horse_bilinear_300x300.png
horse_box_average_50x50.png
horse_box_average_100x100.png
horse_box_average_150x150.png
horse_box_average_300x300.png
horse_grey_flipped.bmp
horse_grey.bmp
horse_rle4_flipped.bmp
horse_rle4.bmp
horse_rle8_flipped.bmp
horse_rle8.bmp
image.cpp Only read BMP pixel data from stream in LoadBMPData() 2022-06-08 23:49:18 +01:00
paste_input_background.png
paste_input_black.png
paste_input_overlay_transparent_border_opaque_square.png
paste_input_overlay_transparent_border_semitransparent_circle.png
paste_input_overlay_transparent_border_semitransparent_square.png
paste_result_background_plus_circle_plus_square.png
paste_result_background_plus_overlay_transparent_border_opaque_square.png
paste_result_background_plus_overlay_transparent_border_semitransparent_square.png
paste_result_no_background_square_over_circle.png
rawbmp.cpp
rle4-delta-320x240.bmp Fix loading of RLE bitmaps in wxBMPHandler 2021-11-18 15:37:03 +01:00
rle8-delta-320x240-expected.bmp Fix loading of RLE bitmaps in wxBMPHandler 2021-11-18 15:37:03 +01:00
rle8-delta-320x240.bmp Fix loading of RLE bitmaps in wxBMPHandler 2021-11-18 15:37:03 +01:00
toucan_bright_-0.259.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_dis_240.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_grey.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_hsv_0.538_-0.41_-0.259.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_hue_0.538.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_light_46.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_mono_255_255_255.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan_sat_-0.41.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
toucan.png Add wxImage Change{Saturation,Brightness,HSV,Lightness}() 2021-05-01 14:03:04 +02:00
width_height_32_bit_overflow.pgm Replace old Trac links with GitHub ones 2022-01-13 16:52:58 +01:00
width-times-height-overflow.bmp Avoid integer overflow when computing image data size in wxImage::Create() 2021-11-27 17:14:28 -08:00
wx.png