Skip to content

Added option to set encoder properties - #86

Open
rgusmero wants to merge 1 commit into
NaturalHistoryMuseum:masterfrom
rgusmero:master
Open

Added option to set encoder properties#86
rgusmero wants to merge 1 commit into
NaturalHistoryMuseum:masterfrom
rgusmero:master

Conversation

@rgusmero

Copy link
Copy Markdown

Parameters can now be set to the encoder via kwargs in encode() function. This makes it much more flexible.

Example code:

encoded = pylibdmtx.pylibdmtx.encode(
b'0123456',
'Ascii',
'SquareAuto',
DmtxPropPixelPacking=pylibdmtx.pylibdmtx.DmtxPackOrder.DmtxPack8bppK,
DmtxPropMarginSize=0,
DmtxPropModuleSize=1
)

Parameters can now be set to the encoder via kwargs in encode() function. This makes it much more flexible.

Example code:

encoded = pylibdmtx.pylibdmtx.encode(
        b'0123456',
        'Ascii',
        'SquareAuto',
        DmtxPropPixelPacking=pylibdmtx.pylibdmtx.DmtxPackOrder.DmtxPack8bppK,
        DmtxPropMarginSize=0,
        DmtxPropModuleSize=1
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant