共用方式為


Canvas.SetViewport(Int32, Int32) Method

Definition

[Android.Runtime.Register("setViewport", "(II)V", "GetSetViewport_IIHandler")]
public virtual void SetViewport (int width, int height);
[<Android.Runtime.Register("setViewport", "(II)V", "GetSetViewport_IIHandler")>]
abstract member SetViewport : int * int -> unit
override this.SetViewport : int * int -> unit

Parameters

width
Int32
height
Int32
Attributes

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