Sp3dPaintImage constructor

Sp3dPaintImage(
  1. Sp3dMaterial material,
  2. bool imageBGisBlack
)

Constructor

  • material : Sp3dMaterial object.
  • imageBGisBlack : This specifies the filling of transparent parts of the image data. If false, transparent mode is enabled. Set to true only if compatibility with previous versions is required.

Implementation

Sp3dPaintImage(this.material, bool imageBGisBlack) {
  _colors = imageBGisBlack ? _bgBlack : _bgTP;
}