Bitmap: Difference between revisions

184 bytes added ,  2 years ago
Line 4,124:
=={{header|Smalltalk}}==
<lang Smalltalk>
|img|
img := Image width:100 height:200 depth:24.
img fillRectangle:(0@0 corner:100@100) with:Color red.
img saveOn:'sampleFile.png'.
 
img displayOn:Transcript window graphicsContext.
</lang>
 
Anonymous user