OK: do you think is better to make this rounding directly in the code
(using a function such as Math.round() ) ? I think the result will be
more predictable this way, won't it?
Il 18/04/2011 19.05, Paulo Soares ha scritto:
> Yes but note that as you can't have half printer pixels you'll end up
> with 2, 3 or 4 pixels depending on where the bar is placed.
>
> Paulo
>
> ------------------------------------------------------------------------
> *From:* Diego Ruotolo [mailto:[email protected]]
> *Sent:* Monday, April 18, 2011 5:55 PM
> *To:* [email protected]
> *Subject:* Re: [iText-questions] HELP NEEDED: barcode and
> anti-aliasing
>
> Hi Paulo,
>
> thanks for your answer. Can you also suggest me some tricks to
> improve barcode quality? E.g., a correct value for the X property?
> Actually, if I want a narrow bar of 3 pixels and I have a
> resolution of 200 dpi, I set the X property to 3*72/200 , is that
> right?
> Thanks,
>
> Diego
>
> Il 18/04/2011 18.02, Paulo Soares ha scritto:
>> That's your printer driver being too helpful. From Acrobat print to
>> image and it will look ok.
>>
>> Paulo
>>
>> -----Original Message-----
>> From: Diego Ruotolo [mailto:[email protected]]
>> Sent: Monday, April 18, 2011 4:28 PM
>> To: [email protected]
>> Subject: [iText-questions] HELP NEEDED: barcode and anti-aliasing
>>
>> Hi,
>>
>> this is my first post to this list. My name is Diego and I am using
>> iText to generate labels with barcode. I've tried several way of barcode
>> generation, e.g. as a tempalte with barcode, as an iText image and as an
>> awt image, but the result is always the same: a kinda anti-aliasing
>> effect appears on the edge of bars, like a gray 1-pixel line. Since the
>> data are correct (e.g.: the awt image is only black and white), I would
>> like to know if there is any way to remove this rendering problem,
>> because it may cause the barcode not to be read by some instruments.
>> Actually I am using Interleaved 2 of 5 barcode, but I need to remove
>> this "anti-aliasing" effect on all barcode type.
>> All susggestions are welcome.
>>
>> Thanks in advice,
>>
>> Diego
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Benefiting from Server Virtualization: Beyond Initial Workload
>> Consolidation -- Increasing the use of server virtualization is a top
>> priority.Virtualization can reduce costs, simplify management, and
>> improve
>> application availability and disaster protection. Learn more about
>> boosting
>> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>> _______________________________________________
>> iText-questions mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with a
>> reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:
>> http://itextpdf.com/themes/keywords.php
>>
>>
>> Aviso Legal:
>>
>> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
>> informação confidencial ou legalmente protegida. A incorrecta transmissão
>> desta mensagem não significa a perca de confidencialidade. Se esta mensagem
>> for recebida por engano, por favor envie-a de volta para o remetente e
>> apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o
>> destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.
>>
>>
>>
>> Disclaimer:
>>
>> This message is destined exclusively to the intended receiver. It may
>> contain confidential or legally protected information. The incorrect
>> transmission of this message does not mean the loss of its confidentiality.
>> If this message is received by mistake, please send it back to the sender
>> and delete it from your system immediately. It is forbidden to any person
>> who is not the intended receiver to use, distribute or copy any part of this
>> message.
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Benefiting from Server Virtualization: Beyond Initial Workload
>> Consolidation -- Increasing the use of server virtualization is a top
>> priority.Virtualization can reduce costs, simplify management, and
>> improve
>> application availability and disaster protection. Learn more about
>> boosting
>> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>>
>>
>> _______________________________________________
>> iText-questions mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with a
>> reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:
>> http://itextpdf.com/themes/keywords.php
>
>
> --
>
> Ing. Diego Ruotolo
> Software developer
>
> NoemaLife S.p.A.
> Via Gobetti, 52
> 40129 Bologna - ITALY
> T +39 051 70.98.249
> F +39 051 41.93.900
> www.noemalife.com
>
> ------------------------------------------------------------------------
> Aviso Legal:
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta
> transmissão desta mensagem não significa a perca de confidencialidade.
> Se esta mensagem for recebida por engano, por favor envie-a de volta
> para o remetente e apague-a do seu sistema de imediato. É proibido a
> qualquer pessoa que não o destinatário de usar, revelar ou distribuir
> qualquer parte desta mensagem.
>
> Disclaimer:
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send
> it back to the sender and delete it from your system immediately. It
> is forbidden to any person who is not the intended receiver to use,
> distribute or copy any part of this message.
>
>
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>
>
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
--
Ing. Diego Ruotolo
Software developer
NoemaLife S.p.A.
Via Gobetti, 52
40129 Bologna - ITALY
T +39 051 70.98.249
F +39 051 41.93.900
www.noemalife.com
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php