Documentation ¶
Overview ¶
Package image is methods and camera settings to produce photographic image capture.
Index ¶
- type ConstrainPoint2DParameters
- type FillLightMode
- type ImageCapture
- func (_this *ImageCapture) GetPhotoCapabilities() (_result *PromisePhotoCapabilities)
- func (_this *ImageCapture) GetPhotoSettings() (_result *PromisePhotoSettings)
- func (_this *ImageCapture) GrabFrame() (_result *canvas.PromiseImageBitmap)
- func (_this *ImageCapture) JSValue() js.Value
- func (_this *ImageCapture) TakePhoto(photoSettings *PhotoSettings) (_result *file.PromiseBlob)
- func (_this *ImageCapture) Track() *local.MediaStreamTrack
- type PhotoCapabilities
- func (_this *PhotoCapabilities) FillLightMode() *javascript.FrozenArray
- func (_this *PhotoCapabilities) ImageHeight() *mediatype.MediaSettingsRange
- func (_this *PhotoCapabilities) ImageWidth() *mediatype.MediaSettingsRange
- func (_this *PhotoCapabilities) JSValue() js.Value
- func (_this *PhotoCapabilities) RedEyeReduction() RedEyeReduction
- type PhotoSettings
- type PromisePhotoCapabilities
- func (_this *PromisePhotoCapabilities) Catch(onRejected *PromisePhotoCapabilitiesOnRejected) (_result *PromisePhotoCapabilities)
- func (_this *PromisePhotoCapabilities) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePhotoCapabilities)
- func (_this *PromisePhotoCapabilities) JSValue() js.Value
- func (_this *PromisePhotoCapabilities) Then(onFulfilled *PromisePhotoCapabilitiesOnFulfilled, ...) (_result *PromisePhotoCapabilities)
- type PromisePhotoCapabilitiesOnFulfilled
- type PromisePhotoCapabilitiesOnFulfilledFunc
- type PromisePhotoCapabilitiesOnRejected
- type PromisePhotoCapabilitiesOnRejectedFunc
- type PromisePhotoSettings
- func (_this *PromisePhotoSettings) Catch(onRejected *PromisePhotoSettingsOnRejected) (_result *PromisePhotoSettings)
- func (_this *PromisePhotoSettings) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePhotoSettings)
- func (_this *PromisePhotoSettings) JSValue() js.Value
- func (_this *PromisePhotoSettings) Then(onFulfilled *PromisePhotoSettingsOnFulfilled, ...) (_result *PromisePhotoSettings)
- type PromisePhotoSettingsOnFulfilled
- type PromisePhotoSettingsOnFulfilledFunc
- type PromisePhotoSettingsOnRejected
- type PromisePhotoSettingsOnRejectedFunc
- type RedEyeReduction
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstrainPoint2DParameters ¶
dictionary: ConstrainPoint2DParameters
func ConstrainPoint2DParametersFromJS ¶
func ConstrainPoint2DParametersFromJS(value js.Value) *ConstrainPoint2DParameters
ConstrainPoint2DParametersFromJS is allocating a new ConstrainPoint2DParameters object and copy all values in the value javascript object.
func (*ConstrainPoint2DParameters) JSValue ¶
func (_this *ConstrainPoint2DParameters) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type FillLightMode ¶
type FillLightMode int
enum: FillLightMode
const ( AutoFillLightMode FillLightMode = iota OffFillLightMode FlashFillLightMode )
func FillLightModeFromJS ¶
func FillLightModeFromJS(value js.Value) FillLightMode
FillLightModeFromJS is converting a javascript value into a FillLightMode enum value.
func (*FillLightMode) JSValue ¶
func (this *FillLightMode) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (FillLightMode) Value ¶
func (this FillLightMode) Value() string
Value is converting this into javascript defined string value
type ImageCapture ¶
class: ImageCapture
func ImageCaptureFromJS ¶
func ImageCaptureFromJS(value js.Value) *ImageCapture
ImageCaptureFromJS is casting a js.Value into ImageCapture.
func ImageCaptureFromWrapper ¶
func ImageCaptureFromWrapper(input core.Wrapper) *ImageCapture
ImageCaptureFromJS is casting from something that holds a js.Value into ImageCapture.
func NewImageCapture ¶
func NewImageCapture(videoTrack *local.MediaStreamTrack) (_result *ImageCapture)
func (*ImageCapture) GetPhotoCapabilities ¶
func (_this *ImageCapture) GetPhotoCapabilities() (_result *PromisePhotoCapabilities)
func (*ImageCapture) GetPhotoSettings ¶
func (_this *ImageCapture) GetPhotoSettings() (_result *PromisePhotoSettings)
func (*ImageCapture) GrabFrame ¶
func (_this *ImageCapture) GrabFrame() (_result *canvas.PromiseImageBitmap)
func (*ImageCapture) JSValue ¶
func (_this *ImageCapture) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*ImageCapture) TakePhoto ¶
func (_this *ImageCapture) TakePhoto(photoSettings *PhotoSettings) (_result *file.PromiseBlob)
func (*ImageCapture) Track ¶
func (_this *ImageCapture) Track() *local.MediaStreamTrack
Track returning attribute 'track' with type local.MediaStreamTrack (idl: MediaStreamTrack).
type PhotoCapabilities ¶
type PhotoCapabilities struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: PhotoCapabilities
func PhotoCapabilitiesFromJS ¶
func PhotoCapabilitiesFromJS(value js.Value) *PhotoCapabilities
PhotoCapabilitiesFromJS is casting a js.Value into PhotoCapabilities.
func PhotoCapabilitiesFromWrapper ¶
func PhotoCapabilitiesFromWrapper(input core.Wrapper) *PhotoCapabilities
PhotoCapabilitiesFromJS is casting from something that holds a js.Value into PhotoCapabilities.
func (*PhotoCapabilities) FillLightMode ¶
func (_this *PhotoCapabilities) FillLightMode() *javascript.FrozenArray
FillLightMode returning attribute 'fillLightMode' with type javascript.FrozenArray (idl: FrozenArray).
func (*PhotoCapabilities) ImageHeight ¶
func (_this *PhotoCapabilities) ImageHeight() *mediatype.MediaSettingsRange
ImageHeight returning attribute 'imageHeight' with type mediatype.MediaSettingsRange (idl: MediaSettingsRange).
func (*PhotoCapabilities) ImageWidth ¶
func (_this *PhotoCapabilities) ImageWidth() *mediatype.MediaSettingsRange
ImageWidth returning attribute 'imageWidth' with type mediatype.MediaSettingsRange (idl: MediaSettingsRange).
func (*PhotoCapabilities) JSValue ¶
func (_this *PhotoCapabilities) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PhotoCapabilities) RedEyeReduction ¶
func (_this *PhotoCapabilities) RedEyeReduction() RedEyeReduction
RedEyeReduction returning attribute 'redEyeReduction' with type RedEyeReduction (idl: RedEyeReduction).
type PhotoSettings ¶
type PhotoSettings struct { FillLightMode FillLightMode ImageHeight float64 ImageWidth float64 RedEyeReduction bool }
dictionary: PhotoSettings
func PhotoSettingsFromJS ¶
func PhotoSettingsFromJS(value js.Value) *PhotoSettings
PhotoSettingsFromJS is allocating a new PhotoSettings object and copy all values in the value javascript object.
func (*PhotoSettings) JSValue ¶
func (_this *PhotoSettings) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PromisePhotoCapabilities ¶
type PromisePhotoCapabilities struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromisePhotoCapabilitiesFromJS ¶
func PromisePhotoCapabilitiesFromJS(value js.Value) *PromisePhotoCapabilities
PromisePhotoCapabilitiesFromJS is casting a js.Value into PromisePhotoCapabilities.
func PromisePhotoCapabilitiesFromWrapper ¶
func PromisePhotoCapabilitiesFromWrapper(input core.Wrapper) *PromisePhotoCapabilities
PromisePhotoCapabilitiesFromJS is casting from something that holds a js.Value into PromisePhotoCapabilities.
func (*PromisePhotoCapabilities) Catch ¶
func (_this *PromisePhotoCapabilities) Catch(onRejected *PromisePhotoCapabilitiesOnRejected) (_result *PromisePhotoCapabilities)
func (*PromisePhotoCapabilities) Finally ¶
func (_this *PromisePhotoCapabilities) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePhotoCapabilities)
func (*PromisePhotoCapabilities) JSValue ¶
func (_this *PromisePhotoCapabilities) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromisePhotoCapabilities) Then ¶
func (_this *PromisePhotoCapabilities) Then(onFulfilled *PromisePhotoCapabilitiesOnFulfilled, onRejected *PromisePhotoCapabilitiesOnRejected) (_result *PromisePhotoCapabilities)
type PromisePhotoCapabilitiesOnFulfilled ¶
PromisePhotoCapabilitiesOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePhotoCapabilitiesOnFulfilledToJS ¶
func PromisePhotoCapabilitiesOnFulfilledToJS(callback PromisePhotoCapabilitiesOnFulfilledFunc) *PromisePhotoCapabilitiesOnFulfilled
type PromisePhotoCapabilitiesOnFulfilledFunc ¶
type PromisePhotoCapabilitiesOnFulfilledFunc func(value *PhotoCapabilities)
callback: PromiseTemplateOnFulfilled
func PromisePhotoCapabilitiesOnFulfilledFromJS ¶
func PromisePhotoCapabilitiesOnFulfilledFromJS(_value js.Value) PromisePhotoCapabilitiesOnFulfilledFunc
type PromisePhotoCapabilitiesOnRejected ¶
PromisePhotoCapabilitiesOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePhotoCapabilitiesOnRejectedToJS ¶
func PromisePhotoCapabilitiesOnRejectedToJS(callback PromisePhotoCapabilitiesOnRejectedFunc) *PromisePhotoCapabilitiesOnRejected
type PromisePhotoCapabilitiesOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromisePhotoCapabilitiesOnRejectedFromJS ¶
func PromisePhotoCapabilitiesOnRejectedFromJS(_value js.Value) PromisePhotoCapabilitiesOnRejectedFunc
type PromisePhotoSettings ¶
type PromisePhotoSettings struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromisePhotoSettingsFromJS ¶
func PromisePhotoSettingsFromJS(value js.Value) *PromisePhotoSettings
PromisePhotoSettingsFromJS is casting a js.Value into PromisePhotoSettings.
func PromisePhotoSettingsFromWrapper ¶
func PromisePhotoSettingsFromWrapper(input core.Wrapper) *PromisePhotoSettings
PromisePhotoSettingsFromJS is casting from something that holds a js.Value into PromisePhotoSettings.
func (*PromisePhotoSettings) Catch ¶
func (_this *PromisePhotoSettings) Catch(onRejected *PromisePhotoSettingsOnRejected) (_result *PromisePhotoSettings)
func (*PromisePhotoSettings) Finally ¶
func (_this *PromisePhotoSettings) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePhotoSettings)
func (*PromisePhotoSettings) JSValue ¶
func (_this *PromisePhotoSettings) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromisePhotoSettings) Then ¶
func (_this *PromisePhotoSettings) Then(onFulfilled *PromisePhotoSettingsOnFulfilled, onRejected *PromisePhotoSettingsOnRejected) (_result *PromisePhotoSettings)
type PromisePhotoSettingsOnFulfilled ¶
PromisePhotoSettingsOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePhotoSettingsOnFulfilledToJS ¶
func PromisePhotoSettingsOnFulfilledToJS(callback PromisePhotoSettingsOnFulfilledFunc) *PromisePhotoSettingsOnFulfilled
type PromisePhotoSettingsOnFulfilledFunc ¶
type PromisePhotoSettingsOnFulfilledFunc func(value *PhotoSettings)
callback: PromiseTemplateOnFulfilled
func PromisePhotoSettingsOnFulfilledFromJS ¶
func PromisePhotoSettingsOnFulfilledFromJS(_value js.Value) PromisePhotoSettingsOnFulfilledFunc
type PromisePhotoSettingsOnRejected ¶
PromisePhotoSettingsOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePhotoSettingsOnRejectedToJS ¶
func PromisePhotoSettingsOnRejectedToJS(callback PromisePhotoSettingsOnRejectedFunc) *PromisePhotoSettingsOnRejected
type PromisePhotoSettingsOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromisePhotoSettingsOnRejectedFromJS ¶
func PromisePhotoSettingsOnRejectedFromJS(_value js.Value) PromisePhotoSettingsOnRejectedFunc
type RedEyeReduction ¶
type RedEyeReduction int
enum: RedEyeReduction
const ( NeverRedEyeReduction RedEyeReduction = iota AlwaysRedEyeReduction ControllableRedEyeReduction )
func RedEyeReductionFromJS ¶
func RedEyeReductionFromJS(value js.Value) RedEyeReduction
RedEyeReductionFromJS is converting a javascript value into a RedEyeReduction enum value.
func (*RedEyeReduction) JSValue ¶
func (this *RedEyeReduction) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (RedEyeReduction) Value ¶
func (this RedEyeReduction) Value() string
Value is converting this into javascript defined string value