![]() |
Kiwano Engine
v1.2.x
|
GIF图像 更多...
#include <GifImage.h>
类 | |
struct | Frame |
GIF帧 更多... | |
Public 类型 | |
enum | DisposalType { DisposalType::Unknown, DisposalType::None, DisposalType::Background, DisposalType::Previous } |
GIF帧的处置方式 更多... | |
Public 成员函数 | |
GifImage (const String &file_path) | |
创建GIF图片 | |
GifImage (const Resource &res) | |
创建GIF图片 | |
bool | Load (const String &file_path) |
加载本地GIF图片 | |
bool | Load (const Resource &res) |
加载GIF资源 | |
uint32_t | GetWidthInPixels () const |
获取像素宽度 | |
uint32_t | GetHeightInPixels () const |
获取像素高度 | |
PixelSize | GetSizeInPixels () const |
获取像素大小 | |
uint32_t | GetFramesCount () const |
获取帧数量 | |
Frame | GetFrame (uint32_t index) |
获取GIF帧 更多... | |
![]() | |
bool | IsValid () const override |
判断对象是否有效 | |
void * | GetNativePointer () const |
template<typename _NativeTy > | |
_NativeTy * | GetNativePointer () const |
virtual void | ResetNativePointer (void *native_pointer=nullptr) |
![]() | |
ObjectBase () | |
构造基础对象 | |
void | SetName (const String &name) |
设置对象名 | |
String | GetName () const |
获取对象名 | |
bool | IsName (const String &name) const |
判断对象的名称是否相同 更多... | |
void * | GetUserData () const |
获取用户数据 | |
void | SetUserData (void *data) |
设置用户数据 | |
uint64_t | GetObjectID () const |
获取对象ID | |
void | DoSerialize (Serializer *serializer) const override |
序列化 | |
void | DoDeserialize (Deserializer *deserializer) override |
反序列化 | |
ObjectStatus * | GetStatus () const |
获取对象状态 | |
void | SetStatus (const ObjectStatus &status) |
设置对象状态 | |
void | Fail (const String &msg, int code=ObjectStatus::fail) |
将对象标记为失败状态 | |
void | ClearStatus () |
清除对象状态 | |
![]() | |
void | Retain () |
增加引用计数 | |
void | Release () |
减少引用计数 | |
uint32_t | GetRefCount () const |
获取引用计数 | |
![]() | |
Vector< uint8_t > | Serialize () const |
序列化为字节串 | |
void | Deserialize (const Vector< uint8_t > &data) |
从字节串反序列化 | |
静态 Public 成员函数 | |
static GifImagePtr | Preload (const String &file_path) |
预加载本地GIF图片 | |
static GifImagePtr | Preload (const Resource &res) |
预加载GIF图片资源 | |
![]() | |
static void | SetObjectPolicy (const ObjectPolicyFunc &policy) |
设置对象处理策略 | |
static bool | IsTracingLeaks () |
是否启用了内存泄漏追踪 | |
static void | StartTracingLeaks () |
开始追踪内存泄漏 | |
static void | StopTracingLeaks () |
停止追踪内存泄漏 | |
static void | DumpTracingObjects () |
打印所有追踪中的对象信息 | |
static Vector< ObjectBase * > & | GetTracingObjects () |
获取所有追踪中的对象 | |
![]() | |
static void * | operator new (size_t size) |
static void | operator delete (void *ptr) |
static void * | operator new (size_t size, std::nothrow_t const &) noexcept |
static void | operator delete (void *ptr, std::nothrow_t const &) noexcept |
static void * | operator new (size_t size, void *ptr) noexcept |
static void | operator delete (void *ptr, void *place) noexcept |
额外继承的成员函数 | |
![]() | |
void * | native_pointer_ |
GIF图像
|
strong |
GifImage::Frame kiwano::GifImage::GetFrame | ( | uint32_t | index | ) |
获取GIF帧
index | 帧下标 |