Documentation ¶
Overview ¶
Package svg 封装了对SVG矢量图形的相关操作.
Index ¶
- type Svg
- func NewSvg_LoadFile(pFileName string) *Svg
- func NewSvg_LoadRes(id int, pType string, hModule int) *Svg
- func NewSvg_LoadString(pString string) *Svg
- func NewSvg_LoadStringUtf8(pString string) *Svg
- func NewSvg_LoadStringW(pString string) *Svg
- func NewSvg_LoadZip(pZipFileName, pFileName, pPassword string) *Svg
- func (s *Svg) AddRef() int
- func (s *Svg) Destroy() int
- func (s *Svg) EnableAutoDestroy(bEnable bool) int
- func (s *Svg) GetAlpha() int
- func (s *Svg) GetHeight() int
- func (s *Svg) GetPosition(pX, pY *int) int
- func (s *Svg) GetPositionF(pX, pY *float32) int
- func (s *Svg) GetRefCount() int
- func (s *Svg) GetRotate(pAngle *float32, pX *float32, pY *float32, pbOffset *bool) int
- func (s *Svg) GetRotateAngle() float32
- func (s *Svg) GetSize(pWidth, pHeight *int) int
- func (s *Svg) GetUserFillColor(pColor *int) bool
- func (s *Svg) GetUserStrokeColor(pColor *int, pStrokeWidth *float32) bool
- func (s *Svg) GetViewBox(pViewBox *xc.RECT) int
- func (s *Svg) GetWidth() int
- func (s *Svg) Release() int
- func (s *Svg) SetAlpha(alpha byte) int
- func (s *Svg) SetPosition(x, y int) int
- func (s *Svg) SetPositionF(x, y float32) int
- func (s *Svg) SetRotate(angle float32, x float32, y float32, bOffset bool) int
- func (s *Svg) SetRotateAngle(angle float32) int
- func (s *Svg) SetSize(nWidth, nHeight int) int
- func (s *Svg) SetUserFillColor(color int, bEnable bool) int
- func (s *Svg) SetUserStrokeColor(color int, strokeWidth float32, bEnable bool) int
- func (s *Svg) Show(bShow bool) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Svg ¶
type Svg struct {
objectbase.ObjectBase
}
SVG矢量图形.
func NewSvg_LoadZip ¶
SVG_加载从ZIP, 返回Svg对象.
pZipFileName: zip文件名.
pFileName: svg文件名.
pPassword: zip密码.
func (*Svg) GetRotate ¶
SVG_取旋转.
pAngle: 返回角度.
pX: 返回 旋转中心点X.
pY: 返回 旋转中心点Y.
pbOffset: 返回TRUE: 旋转中心点相对于自身中心偏移, FALSE:使用绝对坐标.
func (*Svg) SetRotate ¶
SVG_置旋转.
angle: 角度.
x: 旋转中心点X.
y: 旋转中心点Y.
bOffset: TRUE: 旋转中心点相对于自身中心偏移, FALSE:使用绝对坐标.
func (*Svg) SetUserStrokeColor ¶
SVG_置用户笔触颜色, 用户颜色将覆盖默认样式.
color: 颜色, AGBR颜色.
strokeWidth: 笔触宽度.
bEnable: 是否有效.
Click to show internal directories.
Click to hide internal directories.