BitmapFactory.Options.InTargetDensity 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這個點陣圖將被繪製到目的地的像素密度。
[Android.Runtime.Register("inTargetDensity")]
public int InTargetDensity { get; set; }
[<Android.Runtime.Register("inTargetDensity")>]
member this.InTargetDensity : int with get, set
屬性值
- 屬性
備註
這個點陣圖將被繪製到目的地的像素密度。 這會與 以及 #inScaled 一起使用#inDensity,用來判斷是否以及如何縮放點陣圖,然後再返回它。
若為 0,則 BitmapFactory#decodeResource(Resources, int)、 BitmapFactory#decodeResource(Resources, int, android.graphics.BitmapFactory.Options)、 BitmapFactory#decodeResourceStream 會填入資源物件的 DisplayMetrics 密度。 其他函數會保持 as-is,且不會進行密度縮放。
Java 文件 android.graphics.BitmapFactory.Options.inTargetDensity。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。