fun reset(): Bitmap

Resets to its initial state; all fields are set to zero, as if Bitmap had been initialized by Bitmap().

Sets width, height, row bytes to zero; pixel address to nullptr; ColorType to ColorType.UNKNOWN; and ColorAlphaType to ColorAlphaType.UNKNOWN.

If PixelRef is allocated, its reference count is decreased by one, releasing its memory if Bitmap is the sole owner.

See also