Documentation ¶
Overview ¶
Package imagex 图片操作.
Index ¶
- type Image
- func X创建并按GDI图片对象指针(GDI图片对象指针 uintptr) *Image
- func X创建并按SVG(SVG句柄 int) *Image
- func X创建并按SVG字符串(字符串 string) *Image
- func X创建并按SVG字符串UTF8(字符串 string) *Image
- func X创建并按SVG字符串W(字符串 string) *Image
- func X创建并按SVG文件(文件名 string) *Image
- func X创建并按ZIP(ZIP压缩包文件名 string, 图片文件名 string, ...) *Image
- func X创建并按ZIP且指定区域(ZIP文件 string, 图片名称 string, 密码 string, ...) *Image
- func X创建并按ZIP且自适应(ZIP压缩包文件名 string, 图片文件名 string, ...) *Image
- func X创建并按位图句柄(位图句柄 uintptr) *Image
- func X创建并按内存(图片数据 []byte) *Image
- func X创建并按内存ZIP(图片数据 []byte, 图片名称 string, zip压缩包密码 string) *Image
- func X创建并按内存且指定区域(图片数据 []byte, 坐标x, 坐标y, 宽度, 高度 int32) *Image
- func X创建并按内存且自适应(图片数据 []byte, 坐标左, 坐标上, 坐标右, 坐标下 int32) *Image
- func X创建并按句柄(句柄 int) *Image
- func X创建并按图标句柄(图标句柄 uintptr) *Image
- func X创建并按图标文件(文件名 string) *Image
- func X创建并按图片源句柄(图片源句柄 int) *Image
- func X创建并按文件(图片文件 string) *Image
- func X创建并按文件且指定区域(图片文件 string, 坐标x, 坐标y, 宽度, 高度 int32) *Image
- func X创建并按文件且自适应(图片文件 string, 左, 上, 右, 下 int32) *Image
- func X创建并按资源(资源ID int32, 资源类型 string, 是否拉伸图片 bool, ...) *Image
- func X创建并按资源ZIP(RC资源ID int32, 图片文件名 string, ZIP压缩包密码 string, ...) *Image
- func X创建并按资源且自适应(资源ID int32, 资源类型 string, 左, 上, 右, 下 int32, ...) *Image
- func X创建并按资源名称(资源名称 string) *Image
- func X创建并按资源文件名(资源文件名, 资源名称 string) *Image
- func (i *Image) X判断居中() bool
- func (i *Image) X判断平铺() bool
- func (i *Image) X判断缩放() bool
- func (i *Image) X判断自适应() bool
- func (i *Image) X取SVG() int
- func (i *Image) X取图片源() int
- func (i *Image) X取宽度() int32
- func (i *Image) X取引用计数() int32
- func (i *Image) X取绘制类型() 炫彩常量类.Image_Draw_Type_
- func (i *Image) X取高度() int32
- func (i *Image) X启用居中(是否居中显示 bool)
- func (i *Image) X启用自动销毁(启用自动销毁TRUE bool)
- func (i *Image) X启用透明色(启用TRUE bool)
- func (i *Image) X增加引用计数()
- func (i *Image) X置旋转角度(选择角度 float32) float32
- func (i *Image) X置等分(等分数量, 索引 int32)
- func (i *Image) X置绘制类型(图片绘制类型 炫彩常量类.Image_Draw_Type_) bool
- func (i *Image) X置绘制类型自适应(坐标左, 坐标上, 坐标右, 坐标下 int32) bool
- func (i *Image) X置缩放大小(宽度, 高度 int32)
- func (i *Image) X置透明色(ABGR颜色 int)
- func (i *Image) X置透明色EX(ABGR颜色 int, 透明度 byte)
- func (i *Image) X释放引用计数()
- func (i *Image) X销毁()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
炫彩对象基类.ObjectBase
}
Image 图片操作.
func X创建并按ZIP ¶
图片_加载从ZIP, 加载图片从ZIP压缩包.
pZipFileName: ZIP压缩包文件名.
pFileName: 图片文件名.
pPassword: ZIP压缩包密码.
func X创建并按ZIP且指定区域 ¶
图片_加载从ZIP指定区域, 加载ZIP图片, 指定区位置及大小.
pZipFileName: ZIP文件.
pFileName: 图片名称.
pPassword: 密码.
x: 坐标.
y: 坐标.
cx: 宽度.
cy: 高度.
func X创建并按ZIP且自适应 ¶
func X创建并按ZIP且自适应(ZIP压缩包文件名 string, 图片文件名 string, ZIP压缩包密码 string, 坐标x1, 坐标x2, 坐标y1, 坐标y2 int32) *Image
图片_加载从ZIP自适应, 加载图片从ZIP压缩包, 自适应图片.
pZipFileName: ZIP压缩包文件名.
pFileName: 图片文件名.
pPassword: ZIP压缩包密码.
x1: 坐标.
x2: 坐标.
y1: 坐标.
y2: 坐标.
func X创建并按内存且自适应 ¶
图片_加载从内存自适应, 加载流图片压缩包, 自适应图片(九宫格).
pBuffer: 图片数据.
leftSize: 坐标.
topSize: 坐标.
rightSize: 坐标.
bottomSize: 坐标.
func X创建并按文件且自适应 ¶
图片_加载从文件自适应, 加载图片从文件, 自适应图片.
pFileName: 图片文件.
leftSize: 坐标.
topSize: 坐标.
rightSize: 坐标.
bottomSize: 坐标.
func X创建并按资源 ¶
图片_加载从资源.
id: 资源ID.
pType: 资源类型.
bStretch: 是否拉伸图片.
hModule: 从指定模块加载, 例如:DLL, EXE; 如果为空, 从当前EXE加载.
func X创建并按资源ZIP ¶
图片_加载从资源ZIP.
id: RC资源ID.
pFileName: 图片文件名.
pPassword: ZIP压缩包密码.
hModule: 模块句柄, 可填0.
func X创建并按资源且自适应 ¶
图片_加载从资源自适应, 加载图片从资源, 自适应图片.
id: 资源ID.
pType: 资源类型.
leftSize: 坐标.
topSize: 坐标.
rightSize: 坐标.
bottomSize: 坐标.
hModule: 从指定模块加载, 例如:DLL, EXE; 如果为空, 从当前EXE加载.
func (*Image) X取绘制类型 ¶
func (i *Image) X取绘制类型() 炫彩常量类.Image_Draw_Type_
图片_取绘制类型, 获取图片绘制类型, 返回: xcc.Image_Draw_Type_.
func (*Image) X置绘制类型自适应 ¶
图片_置绘制类型自适应, 设置图片自适应(九宫格).
leftSize: 坐标.
topSize: 坐标.
rightSize: 坐标.
bottomSize: 坐标.