animated image load util More...
#include "ZFUIWidgetDef.h"Go to the source code of this file.
Macros | |
| #define | ZFUIImageSerializeType_ZFUIImageAni |
| see ZFUIIMAGE_SERIALIZE_TYPE_DEFINE | |
| #define | ZFSerializableKeyword_ZFUIImageAni_images |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFUIImageAni_ref |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFUIImageAni_refSrc |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFUIImageAni_split |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFUIImageAni_frames |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFUIImageAni_size |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFUIImageAni_count |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFUIImageAni_duration |
| keyword for serialize | |
| #define | ZFSerializableKeyword_ZFUIImageAni_rect |
| keyword for serialize | |
Functions | |
| zfautoT< ZFUIImage > | ZFUIImageAni (ZFArray *images, zftimet duration=(0), ZFArray *frameDurations=(zft_zfnull)) |
| animated image util | |
| zfbool | ZFUIImageAniT (ZFUIImage *ret, ZFArray *images, zftimet duration=(0), ZFArray *frameDurations=(zft_zfnull)) |
| see ZFUIImageAni | |
| zfautoT< ZFUIImage > | ZFUIImageAni (ZFUIImage *ref, const ZFUISize &frameSize, zfindex frameCount, zftimet frameDuration=(0)) |
| see ZFUIImageAni | |
| zfbool | ZFUIImageAniT (ZFUIImage *ret, ZFUIImage *ref, const ZFUISize &frameSize, zfindex frameCount, zftimet frameDuration=(0)) |
| see ZFUIImageAni | |
| zfautoT< ZFUIImage > | ZFUIImageAni (const ZFInput &refSrc, const ZFUISize &frameSize, zfindex frameCount, zftimet frameDuration=(0)) |
| see ZFUIImageAni | |
| zfbool | ZFUIImageAniT (ZFUIImage *ret, const ZFInput &refSrc, const ZFUISize &frameSize, zfindex frameCount, zftimet frameDuration=(0)) |
| see ZFUIImageAni | |
| zfautoT< ZFUIImage > | ZFUIImageAni (ZFUIImage *ref, ZFArray *frameRects, zftimet duration=(0), ZFArray *frameDurations=(zft_zfnull)) |
| see ZFUIImageAni | |
| zfbool | ZFUIImageAniT (ZFUIImage *ret, ZFUIImage *ref, ZFArray *frameRects, zftimet duration=(0), ZFArray *frameDurations=(zft_zfnull)) |
| see ZFUIImageAni | |
| zfautoT< ZFUIImage > | ZFUIImageAni (const ZFInput &refSrc, ZFArray *frameRects, zftimet duration=(0), ZFArray *frameDurations=(zft_zfnull)) |
| see ZFUIImageAni | |
| zfbool | ZFUIImageAniT (ZFUIImage *ret, const ZFInput &refSrc, ZFArray *frameRects, zftimet duration=(0), ZFArray *frameDurations=(zft_zfnull)) |
| see ZFUIImageAni | |
| zfautoT< ZFUIImage > | ZFUIImageAniLoad (const ZFInput &input) |
| util function to load animated image with special naming logic | |
| zfbool | ZFUIImageAniLoadCheck (ZFUISize &frameSize, zfindex &frameCount, zftimet &frameDuration, const zfstring &fileName) |
| try parse rules declared in ZFUIImageAniLoad | |
| zfbool | ZFUIImageAniSave (const ZFPathInfo &dst, ZFArray *images, zftimet frameDuration=(0)) |
| util function to save animated image with special logic | |
animated image load util
| #define ZFUIImageSerializeType_ZFUIImageAni |
see ZFUIIMAGE_SERIALIZE_TYPE_DEFINE
serializable data:
|
extern |
animated image util
how it works:
util function to load animated image with special naming logic
the src input must support ZFCallback::callbackId or ZFCallback::pathInfo with this naming rule:
xxx.wxh-N.xxx, for example: path/test.40x30-10.pngxxx.wxh-N-DURATION.xxx, for example: path/test.40x30-10-33.pngthen the result animated image would have:
40x30 as each frame size10 as frame count33 as each frame duration
|
extern |
util function to save animated image with special logic
save to a single large image with special naming rule, see ZFUIImageAniLoad
the dst path info must support these to achieve the special naming rule:
a special file name would be appended to dst, for example, if dst is path/test.png, then the final dst to output may be path/test.40x30-10.png