共用方式為


Picture.RequiresHardwareAcceleration Method

Definition

Indicates whether or not this Picture contains recorded commands that only work when drawn to a hardware-accelerated canvas.

[Android.Runtime.Register("requiresHardwareAcceleration", "()Z", "GetRequiresHardwareAccelerationHandler", ApiSince=28)]
public virtual bool RequiresHardwareAcceleration ();
[<Android.Runtime.Register("requiresHardwareAcceleration", "()Z", "GetRequiresHardwareAccelerationHandler", ApiSince=28)>]
abstract member RequiresHardwareAcceleration : unit -> bool
override this.RequiresHardwareAcceleration : unit -> bool

Returns

true if the Picture can only be drawn to a hardware-accelerated canvas, false otherwise.

Attributes

Remarks

Indicates whether or not this Picture contains recorded commands that only work when drawn to a hardware-accelerated canvas. If this returns true then this Picture can only be drawn to another Picture or to a Canvas where canvas.isHardwareAccelerated() is true.

Note this value is only updated after recording has finished by a call to #endRecording(). Prior to that it will be the default value of false.

Java documentation for android.graphics.Picture.requiresHardwareAcceleration().

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