Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v0.4.0-alpha.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@jamwaffles jamwaffles released this 15 Jun 17:00
· 18 commits to master since this release

Changed

  • (breaking) #3 tinytga now depends on embedded-graphics-core instead of embedded-graphics.

[0.4.0-alpha.1 - embedded-graphics repository] - 2020-12-27

Note: PR numbers from this point onwards are from the old embedded-graphics/embedded-graphics repository. New PR numbers above this note refer to PRs in the embedded-graphics/tinytga repository.

Changed

  • (breaking) #407 The image_descriptor in TgaHeader was replaced by image_origin and alpha_channel_bits.
  • (breaking) #420 To support the new embedded-graphics 0.7 image API a color type parameter was added to Tga.
  • (breaking) #430 The graphics feature was removed and the embedded-graphics dependency is now non optional.
  • (breaking) #430 Tga no longer implements IntoIterator. Pixel iterators can now be created using the pixels and raw_pixels methods.
  • (breaking) #430 Tga::from_slice now checks that the specified color type matches the bit depth of the image.
  • (breaking) #450 The TgaFooter struct was replaced by the developer_dictionary and extension_area methods in RawTga.
  • (breaking) #430 Tga::width and Tga::height were replaced by Tga::size which requires embedded_graphics::geometry::OriginDimensions to be in scope (also included in the embedded-graphics prelude).
  • (breaking) #430 The color map can now be accessed using the new ColorMap type.
  • (breaking) #450 Tga no longer provides direct access to low level information like the TGA header, instead Tga::as_raw can be used to access the underlying RawTga instance.

Added

  • #407 Added support for bottom-left origin images to TgaIterator.
  • #430 The image ID can now be accessed using Tga::image_id.
  • #450 Added RawTga to use tinytga without using a embedded-graphic color type.
  • #450 Added Tga::from_raw to convert a RawTga into a Tga object.
  • #450 Added DynamicTga to allow drawing of TGA images without a known color format at compile time.

Fixed

  • #407 Additional data in pixel_data, beyond width * height pixels, is now discarded by TgaIterator.
  • #430 Images with unsupported BPP values in the header no longer cause panics. Instead an error is returned by Tga::from_slice.
  • #430 Errors during the execution of a pixel iterator no longer cause panics. Instead the corrupted portion of the image is filled with black pixels.