Comments (2)
VB6 function to try retrieve the IPicture from the PixelData.Pixels array:
Called as follows:
PictureBox.Picture = ArrayToPicture(Result.Pixels)
where Result is an instance of the PixelData object returned from using writer.write("text to be encoded as a barcode")
Public Function ArrayToPicture(inArray() As Byte) As IPicture
' function creates a stdPicture from the passed array
' Offset is first item in array: 0 for 0 bound arrays
' Size is how many bytes comprise the image
Dim o_hMem As Long
Dim o_lpMem As Long
Dim aGUID(0 To 3) As Long
Dim Offset As Long
Dim Size As Long
Dim IIStream As IUnknown
aGUID(0) = &H7BF80980 ' GUID for stdPicture
aGUID(1) = &H101ABF32
aGUID(2) = &HAA00BB8B
aGUID(3) = &HAB0C3000
Offset = 0
Size = UBound(inArray) + 1
o_hMem = GlobalAlloc(&H2&, Size)
If Not o_hMem = 0& Then
o_lpMem = GlobalLock(o_hMem)
If Not o_lpMem = 0& Then
CopyMemory ByVal o_lpMem, inArray(Offset), Size
'MoveMemory ByVal o_lpMem, inArray(Offset), Size
Call GlobalUnlock(o_hMem)
If CreateStreamOnHGlobal(o_hMem, 1&, IIStream) = 0& Then
Call OleLoadPicture(ByVal ObjPtr(IIStream), 0&, 0&, aGUID(0), ArrayToPicture)
End If
End If
End If
End Function
from zxing.net.
Thanks for the report.
from zxing.net.
Related Issues (20)
- Renderer for net8.0-android? HOT 4
- ZXing.Net Bindings for SkiaSharp Package missing Linux HOT 4
- Upgrade SkiaSharp - current version had Vulnerabilities HOT 5
- zxing.net is missing NuGet package README file
- Can't encode € symbol to Qr. HOT 3
- Unable to parse this QR code, I don't know why HOT 1
- QRCODE type error parsing to UPC-E type HOT 1
- UPC/EAN Extension 2/5 does not read the 2/5 digit extension
- Can someone finally fix the example usage in README?
- Don't decode QR_CODE HOT 3
- ZXing.Net doesn't seem to be able scan more complicated PDF417 barcodes HOT 12
- EPC QR Code (European Payments Council) Not Decoded HOT 3
- Support for Latin-1 in BARCODE-128 HOT 4
- Upgrade SixLabors.ImageSharp - current version has vulnerabilities HOT 1
- UPC_A's error message is wrong.
- The image for PLESSEY is vertically tiny. HOT 6
- The sides of UPC_A's image could be slightly cut out. HOT 1
- Centering PDF_417 Barcodes and Unstable Width/Height HOT 1
- Barcode as small part of image HOT 1
- Barcode generator: unpredictable whitespace padding around it depending on requested Width
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 zxing.net.