A view over a surface, stored as a plane limited by a width and height. Allows lazy operations to be applied over a surface.
This can have a performance impact. However, a new RAM surface with the operations already applied can be constructed using toRamSurface
- Companion:
- object
Value members
Concrete methods
Clips this view to a chosen rectangle
Clips this view to a chosen rectangle
- Value parameters:
- ch
clip height
- cw
clip width
- cx
leftmost pixel on the surface
- cy
topmost pixel on the surface
Inherited methods
Gets the color from the this surface.
This operation can be perfomance intensive, so it might be worthwile
to either use getPixels
to fetch multiple pixels at the same time or
to implement this operation on the application code.
Gets the color from the this surface.
This operation can be perfomance intensive, so it might be worthwile
to either use getPixels
to fetch multiple pixels at the same time or
to implement this operation on the application code.
- Value parameters:
- x
pixel x position
- y
pixel y position
- Returns:
pixel color
- Inherited from:
- Surface
Copies this surface into a new surface stored in RAM
Copies this surface into a new surface stored in RAM
- Inherited from:
- Surface