createBarCode

open fun createBarCode(@NonNull content: String, desiredWidth: Int, desiredHeight: Int): Bitmap

生成条形码

Return

Parameters

content
desiredWidth
desiredHeight

open fun createBarCode(@NonNull content: String, @NonNull format: BarcodeFormat, desiredWidth: Int, desiredHeight: Int): Bitmap

生成条形码

Return

Parameters

content
format
desiredWidth
desiredHeight

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
desiredWidth
desiredHeight
isShowText
codeColor

open fun createBarCode(@NonNull content: String, @NonNull format: BarcodeFormat, desiredWidth: Int, desiredHeight: Int, @Nullable hints: Map<EncodeHintType, out Any>): Bitmap

生成条形码

Return

Parameters

content
format
desiredWidth
desiredHeight
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
desiredWidth
desiredHeight
hints
isShowText

open fun createBarCode(@NonNull content: String, @NonNull format: BarcodeFormat, desiredWidth: Int, desiredHeight: Int, isShowText: Boolean, @ColorInt codeColor: Int): Bitmap

生成条形码

Return

Parameters

content
format
desiredWidth
desiredHeight
isShowText
codeColor

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
desiredWidth
desiredHeight
hints
isShowText
textSize
codeColor