Documentation ¶
Overview ¶
Package blp is a BLIzzard Picture image format decoder.
Example ¶
package main import ( "fmt" "os" "github.com/nielsAD/gowarcraft3/file/blp" ) func main() { f, err := os.Open("./test.blp") if err != nil { fmt.Println(err) return } defer f.Close() img, err := blp.Decode(f) if err != nil { fmt.Println(err) return } fmt.Println(img.Bounds()) }
Output: (0,0)-(256,256)
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadFormat = errors.New("blp: Invalid file format") ErrInvalidCompression = errors.New("blp: Compression not supported") )
Errors
View Source
var Header = protocol.DString("BLP1")
Header constant for BLP files
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.