ImageProperties.Builder

公開靜態抽象類別 ImageProperties.Builder

ImageProperties 的建構工具。不同的圖片物件可能需要不同的屬性。詳情請見下方說明:

    TensorBuffer
  • 必要資源:高度 / 寬度 / colorSpaceType。系統不會依據 TensorBuffer 物件的形狀決定圖片高度和寬度。

公用建構函式

公用方法

ImageProperties
build()
抽象 ImageProperties.Builder
抽象 ImageProperties.Builder
setHeight(畫面上的高度)
抽象 ImageProperties.Builder
setWidth(淺色寬度)

繼承的方法

公用建構函式

public Builder ()

公用方法

public ImageProperties build ()

public 抽象 ImageProperties.Builder setColorSpaceType (ColorSpaceType colorSpaceType)

參數
colorSpaceType

public 抽象 ImageProperties.Builder setHeight (int height)

參數
高度

public 抽象 ImageProperties.Builder setWidth (int 寬度)

參數
寬度