mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
This commit is contained in:
1 parent
6c9b3f6019
commit
777d0c7c89
8 files changed
+253
-178
No files matched your search
@@ -20,12 +20,26 @@ import "encoding/xml"
|
||||
type Res struct {
|
||||
XMLName xml.Name `xml:"Res"`
|
||||
BaseLoc string `xml:"BaseLoc,attr"`
|
||||
ColorSpaces ColorSpaces `xml:"ColorSpaces"`
|
||||
Fonts Fonts `xml:"Fonts"`
|
||||
MultiMedias MultiMedias `xml:"MultiMedias"`
|
||||
DrawParams DrawParams `xml:"DrawParams"`
|
||||
CompositeGraphicUnits CompositeGraphicUnits `xml:"CompositeGraphicUnits"`
|
||||
}
|
||||
|
||||
// ColorSpaces 颜色空间集合
|
||||
type ColorSpaces struct {
|
||||
ColorSpace []ColorSpace `xml:"ColorSpace"`
|
||||
}
|
||||
|
||||
// ColorSpace 颜色空间定义
|
||||
type ColorSpace struct {
|
||||
ID string `xml:"ID,attr"`
|
||||
Type string `xml:"Type,attr"`
|
||||
BitsPerComponent int `xml:"BitsPerComponent,attr"`
|
||||
Palette []string `xml:"Palette>CV"`
|
||||
}
|
||||
|
||||
// Fonts 字体集合
|
||||
type Fonts struct {
|
||||
Font []Font `xml:"Font"`
|
||||
|
||||
Reference in new issue
Block a user