Upload:
You can make a new picture in temporary memory.
You can make a indexed color picture.
This plugin is for REALbasic ver 2.1.
Returns a picture object of the size and depth specified. Used for off-screen drawing.
mic_NewPicture( Width as Integer, Height as Integer, Depth as Integer, UseTemp as Integer ) as Picture
DepthF1, 2, 4, 8, 16, 32 depth
UseTempF
0: Try making picture in application heap. if it fails, try in temporary.
1: Try making picture in temporary. if it fails, try in application heap.
2: Try making picture in application heap. if it fails, return nil.
3: Try making picture in temporary. if it fails, return nil.
Returns a indeced color picture object of the size. Used for off-screen drawing.
Gray Scale
mic_NewGrayScalePicture( Width as Integer, Height as Integer, UseTemp as Integer ) as Picture
Red
mic_NewRedIndexedColorPicture( Width as Integer, Height as Integer, UseTemp as Integer ) as Picture
Green
mic_NewGreenIndexedColorPicture( Width as Integer, Height as Integer, UseTemp as Integer ) as Picture
Blue
mic_NewBlueIndexedColorPicture( Width as Integer, Height as Integer, UseTemp as Integer ) as Picture
Use 'clut' resource
mic_NewResCLUTIndexedColorPicture( Width as Integer, Height as Integer, clutID as Integer, UseTemp as Integer ) as Picture