webapi: github.com/gowebapi/webapi/media/capture/image Index | Files

package image

import "github.com/gowebapi/webapi/media/capture/image"

Package image is methods and camera settings to produce photographic image capture.

Index

Package Files

doc.go image.go

type ConstrainPoint2DParameters Uses

type ConstrainPoint2DParameters struct {
    Exact []*mediatype.Point2D
    Ideal []*mediatype.Point2D
}

dictionary: ConstrainPoint2DParameters

func ConstrainPoint2DParametersFromJS Uses

func ConstrainPoint2DParametersFromJS(value js.Wrapper) *ConstrainPoint2DParameters

ConstrainPoint2DParametersFromJS is allocating a new ConstrainPoint2DParameters object and copy all values from input javascript object

func (*ConstrainPoint2DParameters) JSValue Uses

func (_this *ConstrainPoint2DParameters) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type FillLightMode Uses

type FillLightMode int

enum: FillLightMode

const (
    AutoFillLightMode FillLightMode = iota
    OffFillLightMode
    FlashFillLightMode
)

func FillLightModeFromJS Uses

func FillLightModeFromJS(value js.Value) FillLightMode

FillLightModeFromJS is converting a javascript value into a FillLightMode enum value.

func (*FillLightMode) JSValue Uses

func (this *FillLightMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (FillLightMode) Value Uses

func (this FillLightMode) Value() string

Value is converting this into javascript defined string value

type ImageCapture Uses

type ImageCapture struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: ImageCapture

func ImageCaptureFromJS Uses

func ImageCaptureFromJS(value js.Wrapper) *ImageCapture

ImageCaptureFromJS is casting a js.Wrapper into ImageCapture.

func NewImageCapture Uses

func NewImageCapture(videoTrack *local.MediaStreamTrack) (_result *ImageCapture)

func (*ImageCapture) GetPhotoCapabilities Uses

func (_this *ImageCapture) GetPhotoCapabilities() (_result *PromisePhotoCapabilities)

func (*ImageCapture) GetPhotoSettings Uses

func (_this *ImageCapture) GetPhotoSettings() (_result *PromisePhotoSettings)

func (*ImageCapture) GrabFrame Uses

func (_this *ImageCapture) GrabFrame() (_result *canvas.PromiseImageBitmap)

func (*ImageCapture) JSValue Uses

func (_this *ImageCapture) JSValue() js.Value

func (*ImageCapture) TakePhoto Uses

func (_this *ImageCapture) TakePhoto(photoSettings *PhotoSettings) (_result *file.PromiseBlob)

func (*ImageCapture) Track Uses

func (_this *ImageCapture) Track() *local.MediaStreamTrack

Track returning attribute 'track' with type local.MediaStreamTrack (idl: MediaStreamTrack).

type PhotoCapabilities Uses

type PhotoCapabilities struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: PhotoCapabilities

func PhotoCapabilitiesFromJS Uses

func PhotoCapabilitiesFromJS(value js.Wrapper) *PhotoCapabilities

PhotoCapabilitiesFromJS is casting a js.Wrapper into PhotoCapabilities.

func (*PhotoCapabilities) FillLightMode Uses

func (_this *PhotoCapabilities) FillLightMode() *javascript.FrozenArray

FillLightMode returning attribute 'fillLightMode' with type javascript.FrozenArray (idl: FrozenArray).

func (*PhotoCapabilities) ImageHeight Uses

func (_this *PhotoCapabilities) ImageHeight() *mediatype.MediaSettingsRange

ImageHeight returning attribute 'imageHeight' with type mediatype.MediaSettingsRange (idl: MediaSettingsRange).

func (*PhotoCapabilities) ImageWidth Uses

func (_this *PhotoCapabilities) ImageWidth() *mediatype.MediaSettingsRange

ImageWidth returning attribute 'imageWidth' with type mediatype.MediaSettingsRange (idl: MediaSettingsRange).

func (*PhotoCapabilities) JSValue Uses

func (_this *PhotoCapabilities) JSValue() js.Value

func (*PhotoCapabilities) RedEyeReduction Uses

func (_this *PhotoCapabilities) RedEyeReduction() RedEyeReduction

RedEyeReduction returning attribute 'redEyeReduction' with type RedEyeReduction (idl: RedEyeReduction).

type PhotoSettings Uses

type PhotoSettings struct {
    FillLightMode   FillLightMode
    ImageHeight     float64
    ImageWidth      float64
    RedEyeReduction bool
}

dictionary: PhotoSettings

func PhotoSettingsFromJS Uses

func PhotoSettingsFromJS(value js.Wrapper) *PhotoSettings

PhotoSettingsFromJS is allocating a new PhotoSettings object and copy all values from input javascript object

func (*PhotoSettings) JSValue Uses

func (_this *PhotoSettings) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PromisePhotoCapabilities Uses

type PromisePhotoCapabilities struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromisePhotoCapabilitiesFromJS Uses

func PromisePhotoCapabilitiesFromJS(value js.Wrapper) *PromisePhotoCapabilities

PromisePhotoCapabilitiesFromJS is casting a js.Wrapper into PromisePhotoCapabilities.

func (*PromisePhotoCapabilities) Catch Uses

func (_this *PromisePhotoCapabilities) Catch(onRejected *PromisePhotoCapabilitiesOnRejected) (_result *PromisePhotoCapabilities)

func (*PromisePhotoCapabilities) Finally Uses

func (_this *PromisePhotoCapabilities) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePhotoCapabilities)

func (*PromisePhotoCapabilities) JSValue Uses

func (_this *PromisePhotoCapabilities) JSValue() js.Value

func (*PromisePhotoCapabilities) Then Uses

func (_this *PromisePhotoCapabilities) Then(onFulfilled *PromisePhotoCapabilitiesOnFulfilled, onRejected *PromisePhotoCapabilitiesOnRejected) (_result *PromisePhotoCapabilities)

type PromisePhotoCapabilitiesOnFulfilled Uses

type PromisePhotoCapabilitiesOnFulfilled js.Func

PromisePhotoCapabilitiesOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromisePhotoCapabilitiesOnFulfilledToJS Uses

func PromisePhotoCapabilitiesOnFulfilledToJS(callback PromisePhotoCapabilitiesOnFulfilledFunc) *PromisePhotoCapabilitiesOnFulfilled

type PromisePhotoCapabilitiesOnFulfilledFunc Uses

type PromisePhotoCapabilitiesOnFulfilledFunc func(value *PhotoCapabilities)

callback: PromiseTemplateOnFulfilled

func PromisePhotoCapabilitiesOnFulfilledFromJS Uses

func PromisePhotoCapabilitiesOnFulfilledFromJS(_value js.Value) PromisePhotoCapabilitiesOnFulfilledFunc

type PromisePhotoCapabilitiesOnRejected Uses

type PromisePhotoCapabilitiesOnRejected js.Func

PromisePhotoCapabilitiesOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromisePhotoCapabilitiesOnRejectedToJS Uses

func PromisePhotoCapabilitiesOnRejectedToJS(callback PromisePhotoCapabilitiesOnRejectedFunc) *PromisePhotoCapabilitiesOnRejected

type PromisePhotoCapabilitiesOnRejectedFunc Uses

type PromisePhotoCapabilitiesOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePhotoCapabilitiesOnRejectedFromJS Uses

func PromisePhotoCapabilitiesOnRejectedFromJS(_value js.Value) PromisePhotoCapabilitiesOnRejectedFunc

type PromisePhotoSettings Uses

type PromisePhotoSettings struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromisePhotoSettingsFromJS Uses

func PromisePhotoSettingsFromJS(value js.Wrapper) *PromisePhotoSettings

PromisePhotoSettingsFromJS is casting a js.Wrapper into PromisePhotoSettings.

func (*PromisePhotoSettings) Catch Uses

func (_this *PromisePhotoSettings) Catch(onRejected *PromisePhotoSettingsOnRejected) (_result *PromisePhotoSettings)

func (*PromisePhotoSettings) Finally Uses

func (_this *PromisePhotoSettings) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePhotoSettings)

func (*PromisePhotoSettings) JSValue Uses

func (_this *PromisePhotoSettings) JSValue() js.Value

func (*PromisePhotoSettings) Then Uses

func (_this *PromisePhotoSettings) Then(onFulfilled *PromisePhotoSettingsOnFulfilled, onRejected *PromisePhotoSettingsOnRejected) (_result *PromisePhotoSettings)

type PromisePhotoSettingsOnFulfilled Uses

type PromisePhotoSettingsOnFulfilled js.Func

PromisePhotoSettingsOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromisePhotoSettingsOnFulfilledToJS Uses

func PromisePhotoSettingsOnFulfilledToJS(callback PromisePhotoSettingsOnFulfilledFunc) *PromisePhotoSettingsOnFulfilled

type PromisePhotoSettingsOnFulfilledFunc Uses

type PromisePhotoSettingsOnFulfilledFunc func(value *PhotoSettings)

callback: PromiseTemplateOnFulfilled

func PromisePhotoSettingsOnFulfilledFromJS Uses

func PromisePhotoSettingsOnFulfilledFromJS(_value js.Value) PromisePhotoSettingsOnFulfilledFunc

type PromisePhotoSettingsOnRejected Uses

type PromisePhotoSettingsOnRejected js.Func

PromisePhotoSettingsOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromisePhotoSettingsOnRejectedToJS Uses

func PromisePhotoSettingsOnRejectedToJS(callback PromisePhotoSettingsOnRejectedFunc) *PromisePhotoSettingsOnRejected

type PromisePhotoSettingsOnRejectedFunc Uses

type PromisePhotoSettingsOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePhotoSettingsOnRejectedFromJS Uses

func PromisePhotoSettingsOnRejectedFromJS(_value js.Value) PromisePhotoSettingsOnRejectedFunc

type RedEyeReduction Uses

type RedEyeReduction int

enum: RedEyeReduction

const (
    NeverRedEyeReduction RedEyeReduction = iota
    AlwaysRedEyeReduction
    ControllableRedEyeReduction
)

func RedEyeReductionFromJS Uses

func RedEyeReductionFromJS(value js.Value) RedEyeReduction

RedEyeReductionFromJS is converting a javascript value into a RedEyeReduction enum value.

func (*RedEyeReduction) JSValue Uses

func (this *RedEyeReduction) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (RedEyeReduction) Value Uses

func (this RedEyeReduction) Value() string

Value is converting this into javascript defined string value

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package image imports 6 packages (graph). Updated 2019-09-19. Refresh now. Tools for package owners.