.. index:: pair: class; P1::CameraSdk::ITile .. _doxid-class_p1_1_1_camera_sdk_1_1_i_tile: class P1::CameraSdk::ITile ========================== .. toctree:: :hidden: Overview ~~~~~~~~ A buffer that is a tile (crop) of an image. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ITile: public :ref:`P1::CameraSdk::IImageBufferFrame`, public :ref:`P1::CameraSdk::IImageFileCommon` { public: // methods virtual uint32_t :ref:`SourceOffsetX`() const = 0; virtual uint32_t :ref:`SourceOffsetY`() const = 0; virtual uint32_t :ref:`SourceWidth`() const = 0; virtual uint32_t :ref:`SourceHeight`() const = 0; virtual float :ref:`ScaleFactor`() const = 0; }; // direct descendants class :ref:`TileImpl`; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // enums enum :ref:`Type`; enum :ref:`Errors`; // methods virtual std::shared_ptr :ref:`Data`() const = 0; virtual size_t :ref:`DataSizeBytes`() const = 0; virtual :ref:`ImageFormat` :ref:`Format`() const = 0; virtual :ref:`Type` :ref:`BufferType`() const = 0; virtual char const* :ref:`BufferTypeStr`() const = 0; virtual char const* :ref:`FormatStr`() const = 0; virtual uint32_t :ref:`DestinationWidth`() const = 0; virtual uint32_t :ref:`DestinationHeight`() const = 0; virtual uint32_t :ref:`ImageId`() const = 0; virtual bool :ref:`AnyErrors`() const = 0; virtual :ref:`Errors` :ref:`ImageFileErrors`() const = 0; virtual std::string :ref:`ErrorsString`() const = 0; .. _details-class_p1_1_1_camera_sdk_1_1_i_tile: 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. :ref:`Version ` 3.0 Methods ------- .. index:: pair: function; SourceOffsetX .. _doxid-class_p1_1_1_camera_sdk_1_1_i_tile_1aecfd0cc9bb2285e6056b279b89a2a42a: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual uint32_t SourceOffsetX() const = 0 This is a horizontal crop offset, in pixels. Origo is in upper left corner. .. index:: pair: function; SourceOffsetY .. _doxid-class_p1_1_1_camera_sdk_1_1_i_tile_1ab7d3fdd8522a89927ad97fe6f1e96129: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual uint32_t SourceOffsetY() const = 0 This is a vertical crop offset, in pixels. Origo is in upper left corner. .. index:: pair: function; SourceWidth .. _doxid-class_p1_1_1_camera_sdk_1_1_i_tile_1aa2d68401875d4ec5e94ede315cb58844: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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. .. index:: pair: function; SourceHeight .. _doxid-class_p1_1_1_camera_sdk_1_1_i_tile_1a2a708a62fae6936353f327bb7c4b7c57: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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. .. index:: pair: function; ScaleFactor .. _doxid-class_p1_1_1_camera_sdk_1_1_i_tile_1ae297ba6d05fd896a7f1f8bbfebb1d928: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual float ScaleFactor() const = 0 This is the scaling factor that is applied to the tiled image. If any.