/
Bitmap.js
64 lines (54 loc) · 1.33 KB
/
Bitmap.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* API Version - 3.1.2 */
/**
* Represents a bitmap image which can be painted via {@link #render(Renderer)}.
*
* @since API version 7
*/
function Bitmap() {}
Bitmap.prototype = new Image();
Bitmap.prototype.constructor = Bitmap;
/**
* @return {int}
*/
Bitmap.prototype.getWidth = function() {};
/**
* @return {int}
*/
Bitmap.prototype.getHeight = function() {};
/**
* @return {BitmapFormat}
*/
Bitmap.prototype.getFormat = function() {};
/**
* @return {MemoryBlock}
*/
Bitmap.prototype.getMemoryBlock = function() {};
/**
* Call this method to start painting the bitmap.
* This method will take care of disposing allocated patterns during the rendering.
*
* @param {Renderer} renderer
* @since API version 7
*/
Bitmap.prototype.render = function(renderer) {};
/**
* Call this method to show a window which displays the bitmap.
* You should see this as a debug utility rather than a Control Surface API feature.
*
* @since API version 7
*/
Bitmap.prototype.showDisplayWindow = function() {};
/**
* Updates the display window title.
*
* @param {string} title
* @since API version 7
*/
Bitmap.prototype.setDisplayWindowTitle = function(title) {};
/**
* Saves the image as a PPM file.
*
* @param {string} path the location of the target file.
* @since API version 7
*/
Bitmap.prototype.saveToDiskAsPPM = function(path) {};