class P1::CameraSdk::ITile
Overview
A buffer that is a tile (crop) of an image. More…
#include <C_P1CameraCommonStructs.h> class ITile: public P1::CameraSdk::IImageBufferFrame, public P1::CameraSdk::IImageFileCommon { public: // methods virtual uint32_t SourceOffsetX() const = 0; virtual uint32_t SourceOffsetY() const = 0; virtual uint32_t SourceWidth() const = 0; virtual uint32_t SourceHeight() const = 0; virtual float ScaleFactor() const = 0; }; // direct descendants class TileImpl;
Inherited Members
public: // enums enum Type; enum Errors; // methods virtual std::shared_ptr<uint8_t const> Data() const = 0; virtual size_t DataSizeBytes() const = 0; virtual ImageFormat Format() const = 0; virtual Type BufferType() const = 0; virtual char const* BufferTypeStr() const = 0; virtual char const* FormatStr() const = 0; virtual uint32_t DestinationWidth() const = 0; virtual uint32_t DestinationHeight() const = 0; virtual uint32_t ImageId() const = 0; virtual bool AnyErrors() const = 0; virtual Errors ImageFileErrors() const = 0; virtual std::string ErrorsString() const = 0;
Detailed Documentation
A buffer that is a tile (crop) of an image.
Image browsing enables zoom and pan, by delivering tiles of images using this interface class.
Version 3.0
Methods
virtual uint32_t SourceOffsetX() const = 0
This is a horizontal crop offset, in pixels.
Origo is in upper left corner.
virtual uint32_t SourceOffsetY() const = 0
This is a vertical crop offset, in pixels.
Origo is in upper left corner.
virtual uint32_t SourceWidth() const = 0
This is source (original) image width in pixels.
Tiling images can be scaled, such that source and destination dimentions differ. The source width reopresents the original width of the crop of the source image on the camera.
virtual uint32_t SourceHeight() const = 0
This is source (original) image height in pixels.
Tiling images can be scaled, such that source and destination dimentions differ. The source height reopresents the original height of the crop of the source image on the camera.
virtual float ScaleFactor() const = 0
This is the scaling factor that is applied to the tiled image. If any.