Interface Bitmap
- All Superinterfaces:
Image
Represents a bitmap image which can be painted via
render(Renderer).- Since:
- API version 7
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the heightintgetWidth()Returns the widthvoidCall this method to start painting the bitmap.voidsaveToDiskAsPPM(String path) Saves the image as a PPM file.voidsetDisplayWindowTitle(String title) Updates the display window title.voidCall this method to show a window which displays the bitmap.
-
Method Details
-
getWidth
int getWidth()Description copied from interface:ImageReturns the width -
getHeight
int getHeight()Description copied from interface:ImageReturns the height -
getFormat
BitmapFormat getFormat() -
getMemoryBlock
MemoryBlock getMemoryBlock() -
render
Call this method to start painting the bitmap. This method will take care of disposing allocated patterns during the rendering.- Since:
- API version 7
-
showDisplayWindow
void showDisplayWindow()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
-
setDisplayWindowTitle
Updates the display window title.- Since:
- API version 7
-
saveToDiskAsPPM
Saves the image as a PPM file.- Parameters:
path- the location of the target file.- Since:
- API version 7
-