ngx-simple-webcam
Version:
A simple Angular 4+ Webcam-Component. Pure & minimal, no Flash-Fallback. <a href="https://basst314.github.io/ngx-simple-webcam/?" target="_blank">See the Demo!</a>
26 lines (25 loc) • 701 B
TypeScript
/**
* Container class for a captured webcam image
* @author basst314
*/
export declare class WebcamImage {
private _mimeType;
private _imageAsBase64;
private _imageAsDataUrl;
constructor(imageAsDataUrl: string, mimeType: string);
/**
* Get the base64 encoded image data
* @returns {string} base64 data of the image
*/
readonly imageAsBase64: string;
/**
* Get the encoded image as dataUrl
* @returns {string} the dataUrl of the image
*/
readonly imageAsDataUrl: string;
/**
* Extracts the Base64 data out of the given dataUrl.
* @param {string} dataUrl the given dataUrl
*/
private getDataFromDataUrl(dataUrl);
}