File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 2020 "Bitmap.setRows" : " Copy row(s) of pixel from buffer to bitmap." ,
2121 "Bitmap.transposed" : " Returns a transposed bitmap (with X/Y swapped)" ,
2222 "Bitmap.width" : " Get the width of the bitmap" ,
23- "bitmap .create" : " Create new empty (transparent) bitmap" ,
24- "bitmap .doubledIcon" : " Double the size of an icon" ,
25- "bitmap .ofBuffer" : " Create new bitmap with given content"
23+ "bitmaps .create" : " Create new empty (transparent) bitmap" ,
24+ "bitmaps .doubledIcon" : " Double the size of an icon" ,
25+ "bitmaps .ofBuffer" : " Create new bitmap with given content"
2626}
Original file line number Diff line number Diff line change 11{
2- "bitmap |block" : " bitmap " ,
2+ "bitmaps |block" : " bitmaps " ,
33 "{id:category}Bitmap" : " Bitmap" ,
4+ "{id:category}Bitmaps" : " Bitmaps" ,
45 "{id:category}__screenhelpers" : " __screenhelpers"
56}
Original file line number Diff line number Diff line change 22
33
44declare interface Bitmap {
5+ /**
6+ * Get underlying buffer
7+ */
8+ //% property shim=BitmapMethods::__buffer
9+ __buffer : Buffer ;
10+
511 /**
612 * Get the width of the bitmap
713 */
@@ -129,24 +135,24 @@ declare interface Bitmap {
129135 //% shim=BitmapMethods::overlapsWith
130136 overlapsWith ( other : Bitmap , x : int32 , y : int32 ) : boolean ;
131137}
132- declare namespace bitmap {
138+ declare namespace bitmaps {
133139
134140 /**
135141 * Create new bitmap with given content
136142 */
137- //% shim=bitmap ::ofBuffer
143+ //% shim=bitmaps ::ofBuffer
138144 function ofBuffer ( buf : Buffer ) : Bitmap ;
139145
140146 /**
141147 * Create new empty (transparent) bitmap
142148 */
143- //% shim=bitmap ::create
149+ //% shim=bitmaps ::create
144150 function create ( width : int32 , height : int32 ) : Bitmap ;
145151
146152 /**
147153 * Double the size of an icon
148154 */
149- //% shim=bitmap ::doubledIcon
155+ //% shim=bitmaps ::doubledIcon
150156 function doubledIcon ( icon : Buffer ) : Buffer ;
151157}
152158
You can’t perform that action at this time.
0 commit comments