www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Working with images

reply Alexandre <alebencz gmail.com> writes:
I have a project written in C++, that I'm thinking to migrating 
to D, but, what is preventing me from migrating to D, is the part 
of the system that works with images, where the system generates 
the image of a payment receipt, currently in the system written 
in C ++, there is an array with image base RGB where I can open 
that RGB by lib. that I use to generate the image in C ++ (the 
lib I use is the CImg), in this system I need to insert texts, 
images and a bar code in that base image..

There is some lib. in D ( multiplataform ), that I could be this, 
insert texts, imagens and a barcode into a existing image, that I 
could be open from memory ?
Nov 01
parent reply Antonio Corbi <acorbi ggmail.xml> writes:
On Wednesday, 1 November 2017 at 12:02:08 UTC, Alexandre wrote:
 I have a project written in C++, that I'm thinking to migrating 
 to D, but, what is preventing me from migrating to D, is the 
 part of the system that works with images, where the system 
 generates the image of a payment receipt, currently in the 
 system written in C ++, there is an array with image base RGB 
 where I can open that RGB by lib. that I use to generate the 
 image in C ++ (the lib I use is the CImg), in this system I 
 need to insert texts, images and a bar code in that base image..

 There is some lib. in D ( multiplataform ), that I could be 
 this, insert texts, imagens and a barcode into a existing 
 image, that I could be open from memory ?
Hi Alxandre, You could use cairo[1] and the port to D provided by the GtkD project[2]. [1] https://www.cairographics.org/ [2] https://api.gtkd.org/gtkd/cairo/Context.html Antonio
Nov 01
parent Daniel Kozak <kozzi11 gmail.com> writes:
You can still use CLib, if you dont find anything else.

On Wed, Nov 1, 2017 at 1:22 PM, Antonio Corbi via Digitalmars-d-learn <
digitalmars-d-learn puremagic.com> wrote:

 On Wednesday, 1 November 2017 at 12:02:08 UTC, Alexandre wrote:

 I have a project written in C++, that I'm thinking to migrating to D,
 but, what is preventing me from migrating to D, is the part of the system
 that works with images, where the system generates the image of a payment
 receipt, currently in the system written in C ++, there is an array with
 image base RGB where I can open that RGB by lib. that I use to generate the
 image in C ++ (the lib I use is the CImg), in this system I need to insert
 texts, images and a bar code in that base image..

 There is some lib. in D ( multiplataform ), that I could be this, insert
 texts, imagens and a barcode into a existing image, that I could be open
 from memory ?
Hi Alxandre, You could use cairo[1] and the port to D provided by the GtkD project[2]. [1] https://www.cairographics.org/ [2] https://api.gtkd.org/gtkd/cairo/Context.html Antonio
Nov 01