Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add diagonal line graphic (^GD) #32

Merged
merged 2 commits into from
Oct 14, 2019
Merged

Conversation

LagTag
Copy link
Collaborator

@LagTag LagTag commented Oct 28, 2018

This is a part of Issue #30. It adds the diagonal line graphic command (^GD), which has attributes of
box_height, box_width, line_thickness, color, orientation.

label = Zebra::Zpl::Label.new(
    :width         => 800,
    :length        => 800,
    :print_speed   => 6,
    :print_density => 5,
    :copies        => 1
)
label_diagonal_test1 = Zebra::Zpl::Diagonal.new :position => [400, 400], :box_height => 100, :box_width => 50,:line_thickness => 5, :color => "B"
label_diagonal_test2 = Zebra::Zpl::Diagonal.new :position => [400, 400], :box_height => 100, :box_width => 50,:line_thickness => 5, :color => "B", :orientation => "L"

label << label_diagonal_test1
label << label_diagonal_test2
label.dump_contents
>>^XA^LL800^LH0,0^LS10^PW800^PR6^FO400,400^GD50,100,5,B,^FS^FO400,400^GD50,100,5,B,L^FS^PQ1^XZ

screen shot 2018-10-27 at 9 23 04 pm

@LagTag LagTag mentioned this pull request Oct 14, 2019
6 tasks
@mtking2 mtking2 merged commit 4cb8ead into bbulpett:master Oct 14, 2019
@mtking2 mtking2 added this to the Version 1.1.0 milestone Oct 23, 2019
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.

2 participants