swf

package module
v0.0.0-...-667508a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2015 License: MIT Imports: 4 Imported by: 0

README

SWF Adobe Flash file (only info about file)

Build Status GoDoc Software License

Installation

$ go get github.com/mantyr/swf

Example

package main

import (
    "github.com/mantyr/swf"
    "fmt"
)

func main() {
    s, err := swf.Open("./testdata/f0673319418b054b4f108c18736a042f5dcec4e2123401c48a727dfaab7354ef.swf")
    fmt.Println(s.Width())  // 640
    fmt.Println(s.Height()) // 480
}

Author

Oleg Shevelev

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SWF

type SWF struct {
	Error error
	// contains filtered or unexported fields
}

func Decode

func Decode(r io.Reader) (s *SWF, err error)

func Open

func Open(address string) (s *SWF, err error)

func (*SWF) Height

func (s *SWF) Height() int

func (*SWF) Width

func (s *SWF) Width() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL