NativeScript图像颜色
例
import { ImageColors } from 'nativescript-image-colors' ;
let image = page . getViewById < Image> ( `image` ) ;
colors = ImageColors . getColorPalette ( image ) ;
colors . color1 ;
colors . color2 ;
colors . color3 ;
用法
返回一个ColorPalette具有3个颜色属性color1 , color2 ,和color3 。 调色板还含有An
评论0
最新资源