asge::media::Image
#include <Image.hpp>Public Types
#
using data_t = std::vector< std::uint8_t >Private Attributes
Public Member Functions
#
Image()=delete#
Image(std::size_t inW, std::size_t inH, graphics::PixelFormat inFormat, data_t const &inData)#
Image(Image const &)=delete#
Image(Image &&)=default#
math::Int2 Dimensions() const noexcept#
graphics::PixelFormat Format() const noexcept#
std::uint8_t const * Data() const noexcept#
std::size_t Stride() const noexcept#
math::Rect AlphaContentBounds() const noexceptTight bounding box of this image's non-transparent pixels, in its own pixel coordinates.
Scans the whole image; see the region overload below to scan just part of it.
#
math::Rect AlphaContentBounds(math::Rect const &inRegion) const noexceptTight bounding box of the non-transparent pixels within inRegion (clamped to this image's own bounds), in the image's own pixel coordinates.
Falls back to the clamped region itself if every pixel in it is fully transparent.