Table of Contents

Class CameraCapture

Namespace
NuvTools.AspNetCore.Blazor.Components
Assembly
NuvTools.AspNetCore.Blazor.dll

A frame captured from the camera.

public sealed class CameraCapture
Inheritance
CameraCapture
Inherited Members

Properties

Base64

The image content in Base64, already without the data:...;base64, prefix.

public string Base64 { get; }

Property Value

string

Bytes

The decoded image content.

public byte[] Bytes { get; }

Property Value

byte[]

ContentType

The MIME type of the captured image, read from DataUrl.

public string ContentType { get; }

Property Value

string

DataUrl

The full data URL, as produced by the canvas (data:image/jpeg;base64,...).

public required string DataUrl { get; init; }

Property Value

string

Height

The captured height, in pixels.

public int Height { get; init; }

Property Value

int

Width

The captured width, in pixels.

public int Width { get; init; }

Property Value

int