Skip to content

v0.4.0

Compare
Choose a tag to compare
@jamwaffles jamwaffles released this 30 Sep 18:14

Added

  • #28 Added a ColorTable struct and the RawBmp::color_table getter to access the BMP files color table.
  • #28 Added support for 4bpp images with color table.
  • #28 Added display example to display BMP images using the embedded-graphics simulator.
  • #34 Added Bmp::pixel and RawBmp::pixel to access individual pixels.

Changed

  • (breaking) #31 Use 1.61 as the MSRV.
  • (breaking) #28 Merged DynamicBmp and Bmp. Bmp will now automatically convert colors and doesn't require explicit color type annotations anymore.
  • (breaking) #28 Changed bounds for the Bmp color type from C: PixelColor + From<<C as PixelColor>::Raw> to C: PixelColor + From<Rgb555> + From<Rgb565> + From<Rgb888>.
  • (breaking) #28 Added additional ParseError variants for improved reporting of errors.
  • (breaking) #28 Removed RawBmp::size and RawBmp::color_bpp. Use RawBmp::header().image_size and RawBmp::header().bpp instead.
  • #28 Bpp::bits, RawBmp::image_data, RawBmp::header, and RawPixel::new are now const.
  • #28 BMP files with incomplete image data are now detected by Bmp::from_slice.

Fixed

  • #32 Report error for images with width <= 0 or height == 0 instead of causing a panic.