Thursday, February 11, 2010

gnocl::pixBuf #1

Had a busy day, decided to relax with a bit of gnocl coding. The last post was about a basic spec for the next pixbuf module and, sure enough, that's what I worked on today. The original bones for the module were put together using the code development wizard which will ship with the next release. This worked compiled fine and so I set about adding some of the simpler functationality based aroung obtaining file information. The resultant commands added today were:

types
description
license | licence

extension

scaleble

writable

fileInfo


Here's what they do:

types
    - returns a list of supported image file types.
description
    - returns a scription of the specified file type.
license | licence
    - returns abbreviated form of the licence terms under which the specified filetype is released.
extension
    - returns a list of extensions associated with the specified filetype,
scalable
    - returns boolean specifying whether the file type is scalable (ie v ector).
writable
    - returns boolean specifying whether the system is capable of saving a pixbuf in the specified file format.
fileInfo
    - returns a list of key information obtained after parsing the specfied file. The information is in the form {width height name}.

No comments: