create Bar Code
生成条形码
Return
Parameters
content
desired Width
desired Height
open fun createBarCode(@NonNull content: String, @NonNull format: BarcodeFormat, desiredWidth: Int, desiredHeight: Int): Bitmap
生成条形码
Return
Parameters
content
format
desired Width
desired Height
open fun createBarCode(@NonNull content: String, desiredWidth: Int, desiredHeight: Int, isShowText: Boolean): Bitmap
open fun createBarCode(@NonNull content: String, desiredWidth: Int, desiredHeight: Int, isShowText: Boolean, @ColorInt codeColor: Int): Bitmap
生成条形码
Return
Parameters
content
desired Width
desired Height
is Show Text
code Color
open fun createBarCode(@NonNull content: String, @NonNull format: BarcodeFormat, desiredWidth: Int, desiredHeight: Int, @Nullable hints: Map<EncodeHintType, out Any>): Bitmap
生成条形码
Return
Parameters
content
format
desired Width
desired Height
hints
open fun createBarCode(@NonNull content: String, @NonNull format: BarcodeFormat, desiredWidth: Int, desiredHeight: Int, @Nullable hints: Map<EncodeHintType, out Any>, isShowText: Boolean): Bitmap
open fun createBarCode(@NonNull content: String, @NonNull format: BarcodeFormat, desiredWidth: Int, desiredHeight: Int, @Nullable hints: Map<EncodeHintType, out Any>, isShowText: Boolean, @ColorInt codeColor: Int): Bitmap
生成条形码
Return
Parameters
content
format
desired Width
desired Height
hints
is Show Text
open fun createBarCode(@NonNull content: String, @NonNull format: BarcodeFormat, desiredWidth: Int, desiredHeight: Int, isShowText: Boolean, @ColorInt codeColor: Int): Bitmap
生成条形码
Return
Parameters
content
format
desired Width
desired Height
is Show Text
code Color
open fun createBarCode(@NonNull content: String, @NonNull format: BarcodeFormat, desiredWidth: Int, desiredHeight: Int, @Nullable hints: Map<EncodeHintType, out Any>, isShowText: Boolean, textSize: Int, @ColorInt codeColor: Int): Bitmap
生成条形码
Return
Parameters
content
format
desired Width
desired Height
hints
is Show Text
text Size
code Color