Patch for documentation generator malfunction. More...
#include <libnebular.hpp>
Inherits libnebular::PictureProps.
Classes | |
class | Impl_ |
Public Member Functions | |
bool | haveHandler () const |
Whether have any PictureHandler attached. | |
void | readFileInfo () |
Reads file and bitmap information from file. | |
void | readBm () |
Reads bitmap from file. | |
void | write () |
Writes to file. | |
~Picture () | |
Picture () | |
Picture (const String &newUrl) | |
attachHandlerGroup | |
Plugins are questioned in order they registered, and first that tells that it can handle specific file, becomes the handler plugin
| |
void | attachHandlerByFileExt () |
By URL ("opt/file/url") file extension. | |
void | attachHandlerByContentMagic () |
By file ("opt/file/url") content "magic". | |
void | attachHandlerForWrite () |
By "mimetype" ("opt/file/mimetype"). | |
void | attachHandlerSomehow () |
By "some" method. | |
void | makeHandlerSomehowAttached () |
By "some" method if haven't been already attached. |
Patch for documentation generator malfunction.
Basic working picture class. The one intended to be widely used by end user.
Compared with its parent PictureProps
, adds file-related functionality. Objects of Picture
haven't been required to be associated with some file or URL (in that case they are used nearly same as PictureProps
).
Parameters for many operations are being read from property map.
Picture
object because: "If there's need to bring this library to higher scale", author would need to store some assisting data between attempts of file type detection by distinct plugins: e.g. open file class when using "file signature", "magic"; "extension" cut from URL when using extensions.Definition at line 648 of file libnebular.hpp.
libnebular::Picture::~Picture | ( | ) |
Definition at line 313 of file libnebular.cpp.
libnebular::Picture::Picture | ( | ) |
Definition at line 314 of file libnebular.cpp.
libnebular::Picture::Picture | ( | const String & | newUrl | ) |
Definition at line 318 of file libnebular.cpp.
void libnebular::Picture::attachHandlerByContentMagic | ( | ) |
By file ("opt/file/url") content "magic".
Definition at line 250 of file libnebular.cpp.
void libnebular::Picture::attachHandlerByFileExt | ( | ) |
By URL ("opt/file/url") file extension.
Definition at line 246 of file libnebular.cpp.
void libnebular::Picture::attachHandlerForWrite | ( | ) |
By "mimetype" ("opt/file/mimetype").
Definition at line 253 of file libnebular.cpp.
void libnebular::Picture::attachHandlerSomehow | ( | ) |
By "some" method.
Definition at line 257 of file libnebular.cpp.
bool libnebular::Picture::haveHandler | ( | ) | const |
Whether have any PictureHandler
attached.
Definition at line 237 of file libnebular.cpp.
void libnebular::Picture::makeHandlerSomehowAttached | ( | ) |
By "some" method if haven't been already attached.
Definition at line 260 of file libnebular.cpp.
void libnebular::Picture::readBm | ( | ) |
Reads bitmap from file.
Definition at line 284 of file libnebular.cpp.
void libnebular::Picture::readFileInfo | ( | ) |
Reads file and bitmap information from file.
Bitmap data ("bm/data") doesn't have been read.
Definition at line 268 of file libnebular.cpp.
void libnebular::Picture::write | ( | ) |
Writes to file.
If plugin doesn't accept given "pixel format", it converts it to some acceptable (by Picture::reproduce()
)
Definition at line 299 of file libnebular.cpp.