Language

SaveFlags Enum

Definition

Enumerates values returned by several methods of SaveFlags and taken as a parameter of several methods of Canvas.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum SaveFlags
[<System.Flags>]
type SaveFlags = 
Inheritance
SaveFlags
Attributes

Fields

Name Value Description
Matrix 1

Legacy flag identifying matrix-state preservation.

Clip 2

Legacy flag identifying clip-state preservation.

HasAlphaLayer 4

Legacy flag for requesting an alpha-capable layer.

FullColorLayer 8

Legacy flag for requesting full color precision in a layer.

ClipToLayer 16

Legacy flag for requesting clipping to layer bounds.

All 31

Restore everything when restore() is called (standard save flags). Note: for performance reasons, it is strongly recommended to pass this - the complete set of flags - to any call to saveLayer() and saveLayerAlpha() variants. Note: all methods that accept this flag have flagless versions that are equivalent to passing this flag.

Android reference for android.graphics.Canvas.ALL_SAVE_FLAG.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to