6#ifndef _ZFI_ZFUIImageIO_h_
7#define _ZFI_ZFUIImageIO_h_
61#define ZFUIImageSerializeType_ZFUIImageFromInput "ZFUIImageFromInput"
64#define ZFSerializableKeyword_ZFUIImageFromInput_imageData "imageData"
96#define ZFUIImageSerializeType_ZFUIImageInFrame "ZFUIImageInFrame"
99#define ZFSerializableKeyword_ZFUIImageInFrame_ref "ref"
101#define ZFSerializableKeyword_ZFUIImageInFrame_refFrame "refFrame"
144#define ZFUIImageSerializeType_ZFUIImageFromColor "ZFUIImageFromColor"
147#define ZFSerializableKeyword_ZFUIImageFromColor_color "color"
149#define ZFSerializableKeyword_ZFUIImageFromColor_size "size"
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
#define ZFMP_IN_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:117
#define ZFMP_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:111
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_3(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:910
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
zfbool ZFUIImageToOutput(const ZFOutput &outputCallback, ZFUIImage *image)
save image to file
zfautoT< ZFUIImage > ZFUIImageInFrame(ZFUIImage *image, const ZFUIRect &frame)
clip an exist image and sharing low level data if possible
zfautoT< ZFUIImage > ZFUIImageFromNativeImage(void *nativeImage, zfbool retainNativeImage=(_ZFT_t_zftrue))
create image from native image
zfautoT< ZFUIImage > ZFUIImageFromInput(const ZFInput &inputCallback)
load image from file
zfbool ZFUIImageFromColorT(ZFUIImage *ret, const ZFUIColor &color, const ZFUISize &size=(ZFUISizeZero()))
see ZFUIImageFromColor
zfbool ZFUIImageInFrameT(ZFUIImage *ret, ZFUIImage *image, const ZFUIRect &frame)
see ZFUIImageInFrame
zfbool ZFUIImageToBase64(const ZFOutput &outputCallback, ZFUIImage *image)
save image to base64 data
zfbool ZFUIImageFromInputT(ZFUIImage *ret, const ZFInput &inputCallback)
see ZFUIImageFromInput
zfautoT< ZFUIImage > ZFUIImageScale(ZFUIImage *image, const ZFUISize &newSize)
scale and return the newly created scaled image
zfautoT< ZFUIImage > ZFUIImageFromColor(const ZFUIColor &color, const ZFUISize &size=(ZFUISizeZero()))
load image from color
zfautoT< ZFUIImage > ZFUIImageFromBase64(const ZFInput &inputCallback)
load image from base64 data
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
_zft_ZFUIColor ZFUIColor
color with AARRGGBB format
Definition ZFUITypeDef.h:1184
ZFUISize const & ZFUISizeZero(void)
(0, 0)
Definition ZFUITypeDef.h:421
general output callback
Definition ZFIOCallback_output.h:37
image storage
Definition ZFUIImage.h:30
2D rectangle
Definition ZFUITypeDef.h:636
2D size
Definition ZFUITypeDef.h:397
type restrict version of zfauto
Definition zfautoFwd.h:110