Skip to main content

createCustomImageData

@microblink/blinkid-core


@microblink/blinkid-core / createCustomImageData

Function: createCustomImageData()

createCustomImageData(imageData): ImageData

Creates a custom ImageData object with the same properties as the original ImageData. This is a workaround for the performance issue in Chromium browsers.

Parameters

imageData

ImageData

The original ImageData object to be wrapped.

Returns

ImageData

A custom ImageData object with the same properties.