Graphics::StreamImageObject Class Reference
Image whose contents are stored in a stream, typically in a file or flash memory. More...
#include <Object.h>
Inheritance diagram for Graphics::StreamImageObject:
Collaboration diagram for Graphics::StreamImageObject:
Public Member Functions | |
StreamImageObject (IDataSourceStream *source, Size size) | |
StreamImageObject (const FSTR::String &image) | |
void | write (MetaWriter &meta) const override |
![]() | |
ImageObject (Size size) | |
Renderer * | createRenderer (const Location &location) const override |
Create a software renderer for this object. More... | |
Size | getSize () const |
uint16_t | width () const |
uint16_t | height () const |
virtual bool | init ()=0 |
Initialise the object, e.g. parse header content and obtain dimensions. More... | |
virtual PixelFormat | getPixelFormat () const =0 |
Get native pixel format. More... | |
virtual size_t | readPixels (const Location &loc, PixelFormat format, void *buffer, uint16_t width) const =0 |
Read pixels in requested format. More... | |
![]() | |
Kind | kind () const override |
![]() | |
virtual Kind | kind () const =0 |
bool | operator== (const Object &other) const |
virtual String | getTypeStr () const |
![]() | |
Object * | getNext () const |
bool | insertAfter (Object *object) |
Iterator | begin () const |
Iterator | end () const |
Iterator | cbegin () const |
Iterator | cend () const |
![]() | |
virtual | ~LinkedObject () |
virtual LinkedObject * | next () const |
bool | insertAfter (LinkedObject *object) |
bool | operator== (const LinkedObject &other) const |
bool | operator!= (const LinkedObject &other) const |
Protected Member Functions | |
void | seek (uint32_t offset) const |
void | read (void *buffer, size_t length) const |
Protected Attributes | |
std::unique_ptr< IDataSourceStream > | stream |
uint32_t | streamPos {} |
![]() | |
Size | imageSize {} |
Additional Inherited Members | |
![]() | |
enum | Kind { Kind::XX } |
using | List = LinkedObjectListTemplate< Object > |
using | OwnedList = OwnedLinkedObjectListTemplate< Object > |
![]() | |
using | Iterator = IteratorTemplate< Object, Object *, Object & > |
using | ConstIterator = IteratorTemplate< const Object, const Object *, const Object & > |
Detailed Description
Image whose contents are stored in a stream, typically in a file or flash memory.
Constructor & Destructor Documentation
◆ StreamImageObject() [1/2]
|
inline |
◆ StreamImageObject() [2/2]
|
inline |
Member Function Documentation
◆ read()
|
inlineprotected |
◆ seek()
|
inlineprotected |
◆ write()
|
inlineoverridevirtual |
Reimplemented from Graphics::ImageObject.
Reimplemented in Graphics::RawImageObject, and Graphics::BitmapObject.
Member Data Documentation
◆ stream
|
protected |
◆ streamPos
|
mutableprotected |
The documentation for this class was generated from the following file: