@nodert-win11/windows.ui.xaml.media.imaging
Version:
Use the Windows.UI.Xaml.Media.Imaging UWP API directly from Node.js
319 lines (249 loc) • 9.16 kB
JavaScript
_BitmapCreateOptions = function () {
this.none = 0;
this.ignoreImageCache = 1;
}
exports.BitmapCreateOptions = new _BitmapCreateOptions();
_DecodePixelType = function () {
this.physical = 0;
this.logical = 1;
}
exports.DecodePixelType = new _DecodePixelType();
_SvgImageSourceLoadStatus = function () {
this.success = 0;
this.networkError = 1;
this.invalidFormat = 2;
this.other = 3;
}
exports.SvgImageSourceLoadStatus = new _SvgImageSourceLoadStatus();
BitmapSource = (function () {
var cls = function BitmapSource() {
this.pixelHeight = new Number();
this.pixelWidth = new Number();
this.dispatcher = new Object();
};
cls.prototype.setSourceAsync = function setSourceAsync(streamSource, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="streamSource" type="Object">A param.</param>
/// </signature>
}
cls.prototype.setSource = function setSource(streamSource) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="streamSource" type="Object">A param.</param>
/// </signature>
}
cls.pixelHeightProperty = new Object();
cls.pixelWidthProperty = new Object();
return cls;
}) ();
exports.BitmapSource = BitmapSource;
BitmapImage = (function () {
var cls = function BitmapImage() {
this.uriSource = new Object();
this.decodePixelWidth = new Number();
this.decodePixelHeight = new Number();
this.createOptions = new BitmapCreateOptions();
this.decodePixelType = new DecodePixelType();
this.autoPlay = new Boolean();
this.isAnimatedBitmap = new Boolean();
this.isPlaying = new Boolean();
this.pixelHeight = new Number();
this.pixelWidth = new Number();
this.dispatcher = new Object();
};
var cls = function BitmapImage(uriSource) {
this.uriSource = new Object();
this.decodePixelWidth = new Number();
this.decodePixelHeight = new Number();
this.createOptions = new BitmapCreateOptions();
this.decodePixelType = new DecodePixelType();
this.autoPlay = new Boolean();
this.isAnimatedBitmap = new Boolean();
this.isPlaying = new Boolean();
this.pixelHeight = new Number();
this.pixelWidth = new Number();
this.dispatcher = new Object();
};
cls.prototype.play = function play() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.prototype.stop = function stop() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.createOptionsProperty = new Object();
cls.decodePixelHeightProperty = new Object();
cls.decodePixelWidthProperty = new Object();
cls.uriSourceProperty = new Object();
cls.decodePixelTypeProperty = new Object();
cls.autoPlayProperty = new Object();
cls.isAnimatedBitmapProperty = new Object();
cls.isPlayingProperty = new Object();
cls.pixelHeightProperty = new Object();
cls.pixelWidthProperty = new Object();
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.BitmapImage = BitmapImage;
DownloadProgressEventArgs = (function () {
var cls = function DownloadProgressEventArgs() {
this.progress = new Number();
};
return cls;
}) ();
exports.DownloadProgressEventArgs = DownloadProgressEventArgs;
RenderTargetBitmap = (function () {
var cls = function RenderTargetBitmap() {
this.pixelHeight = new Number();
this.pixelWidth = new Number();
this.dispatcher = new Object();
};
cls.prototype.renderAsync = function renderAsync(element, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="element" type="Object">A param.</param>
/// </signature>
}
cls.prototype.renderAsync = function renderAsync(element, scaledWidth, scaledHeight, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="element" type="Object">A param.</param>
/// <param name="scaledWidth" type="Number">A param.</param>
/// <param name="scaledHeight" type="Number">A param.</param>
/// </signature>
}
cls.prototype.getPixelsAsync = function getPixelsAsync(callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.pixelHeightProperty = new Object();
cls.pixelWidthProperty = new Object();
return cls;
}) ();
exports.RenderTargetBitmap = RenderTargetBitmap;
SoftwareBitmapSource = (function () {
var cls = function SoftwareBitmapSource() {
this.dispatcher = new Object();
};
cls.prototype.setBitmapAsync = function setBitmapAsync(softwareBitmap, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="softwareBitmap" type="Object">A param.</param>
/// </signature>
}
cls.prototype.close = function close() {
}
return cls;
}) ();
exports.SoftwareBitmapSource = SoftwareBitmapSource;
SurfaceImageSource = (function () {
var cls = function SurfaceImageSource() {
this.dispatcher = new Object();
};
var cls = function SurfaceImageSource(pixelWidth, pixelHeight) {
this.dispatcher = new Object();
};
var cls = function SurfaceImageSource(pixelWidth, pixelHeight, isOpaque) {
this.dispatcher = new Object();
};
return cls;
}) ();
exports.SurfaceImageSource = SurfaceImageSource;
SvgImageSource = (function () {
var cls = function SvgImageSource() {
this.uriSource = new Object();
this.rasterizePixelWidth = new Number();
this.rasterizePixelHeight = new Number();
this.dispatcher = new Object();
};
var cls = function SvgImageSource(uriSource) {
this.uriSource = new Object();
this.rasterizePixelWidth = new Number();
this.rasterizePixelHeight = new Number();
this.dispatcher = new Object();
};
cls.prototype.setSourceAsync = function setSourceAsync(streamSource, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="streamSource" type="Object">A param.</param>
/// </signature>
}
cls.rasterizePixelHeightProperty = new Object();
cls.rasterizePixelWidthProperty = new Object();
cls.uriSourceProperty = new Object();
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.SvgImageSource = SvgImageSource;
SvgImageSourceFailedEventArgs = (function () {
var cls = function SvgImageSourceFailedEventArgs() {
this.status = new SvgImageSourceLoadStatus();
};
return cls;
}) ();
exports.SvgImageSourceFailedEventArgs = SvgImageSourceFailedEventArgs;
SvgImageSourceOpenedEventArgs = (function () {
var cls = function SvgImageSourceOpenedEventArgs() {
};
return cls;
}) ();
exports.SvgImageSourceOpenedEventArgs = SvgImageSourceOpenedEventArgs;
VirtualSurfaceImageSource = (function () {
var cls = function VirtualSurfaceImageSource() {
this.dispatcher = new Object();
};
var cls = function VirtualSurfaceImageSource(pixelWidth, pixelHeight) {
this.dispatcher = new Object();
};
var cls = function VirtualSurfaceImageSource(pixelWidth, pixelHeight, isOpaque) {
this.dispatcher = new Object();
};
return cls;
}) ();
exports.VirtualSurfaceImageSource = VirtualSurfaceImageSource;
WriteableBitmap = (function () {
var cls = function WriteableBitmap() {
this.pixelBuffer = new Object();
this.pixelHeight = new Number();
this.pixelWidth = new Number();
this.dispatcher = new Object();
};
var cls = function WriteableBitmap(pixelWidth, pixelHeight) {
this.pixelBuffer = new Object();
this.pixelHeight = new Number();
this.pixelWidth = new Number();
this.dispatcher = new Object();
};
cls.prototype.invalidate = function invalidate() {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.pixelHeightProperty = new Object();
cls.pixelWidthProperty = new Object();
return cls;
}) ();
exports.WriteableBitmap = WriteableBitmap;
XamlRenderingBackgroundTask = (function () {
var cls = function XamlRenderingBackgroundTask() {
};
cls.prototype.onRun = function onRun(taskInstance) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="taskInstance" type="Object">A param.</param>
/// </signature>
}
return cls;
}) ();
exports.XamlRenderingBackgroundTask = XamlRenderingBackgroundTask;