Comments (2)
If URI is from android file system, you can use DrawableSource.File
. Otherwise you should pre-download it
You can use BitmapDrawable
and create custom DrawableSource
:
val bitmapDrawableSource = DrawableSource {
BitmapDrawable(resources, yourBitmap)
// or yourBitmap.toDrawable(resources)
}
But make sure that your bitmap is immutable. You can check it with Bitmap.isMutable
and make bitmap immutable with
val immutableBitmap = yourBitmap.copy(Bitmap.Config.ARGB_8888, /* isMutable= */false)
from custom-qr-generator.
Thanks. Issue Solved
from custom-qr-generator.
Related Issues (20)
- Circle code shape can not be recognized HOT 2
- Central symmetry of shapes HOT 3
- when centralSymmetry true, frame color and ball color not applying properly and shape getting rotate and destroy HOT 1
- When QR code has more than 800 characters and adding a logo, it taking 4 to 5 seconds to apply HOT 3
- in v1.5.6 SweepGradient(Array) can not pass the value from java code because of generic array type in kotlin. HOT 1
- When logo set sometime getting error immutable bitmap passed to Canvas constructor HOT 3
- live app example HOT 2
- 4th ball visibility HOT 6
- Logo from url HOT 2
- Version 1.5.8 setFourthEyeEnabled() method ambiguous call in Java HOT 2
- QrVectorLogo is not correctly scaled with non whole size HOT 2
- Charset in Vcard HOT 10
- Need option for Padding/Margin for QrVectorBackground Image HOT 6
- Logo seems not cropped properly HOT 5
- Highlight anchor elements for better recognition
- Need option to make all eyes different colours HOT 3
- QrVectorLogo is not correctly showed HOT 2
- java.lang.IllegalArgumentException: width and height must be > 0 HOT 6
- com.google.zxing.WriterException HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from custom-qr-generator.