// Code generated DO NOT EDIT // imagebitmap.go package dom import "syscall/js" type ImageBitmapIFace interface { Close(args ...interface{}) GetHeight() int GetWidth() int } type ImageBitmap struct { Value } func JSValueToImageBitmap(val js.Value) ImageBitmap { return ImageBitmap{Value: JSValueToValue(val)} } func (v Value) AsImageBitmap() ImageBitmap { return ImageBitmap{Value: v} } func NewImageBitmap(args ...interface{}) ImageBitmap { return ImageBitmap{Value: JSValueToValue(js.Global().Get("ImageBitmap").New(args...))} } func (i ImageBitmap) Close(args ...interface{}) { i.Call("close", args...) } func (i ImageBitmap) GetHeight() int { val := i.Get("height") return val.Int() } func (i ImageBitmap) GetWidth() int { val := i.Get("width") return val.Int() }