Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: create valid barcode image

$
0
0
unfortunetley I can not get image.draw() to work.
        ...

        barcodetxt = '6625020060338943108201500001061102';
        MyBarCode.string(true,barcodetxt);
        MyBarCode.encode();
        barcodetxt=MyBarCode.barcodeStr();

        drawableFont = new ImageMagick.DrawableFont("BC C128 Narrow"); //,"normal",400,"normal");
        r = System.Convert::ToByte(0);
        g = System.Convert::ToByte(0);
        b = System.Convert::ToByte(0);
        fontColor = new ImageMagick.MagickColor(r,g,b);

        drawableStrokeColor = new ImageMagick.DrawableStrokeColor(fontColor);
        drawableText = new ImageMagick.DrawableText(10,10, barcodetxt);

        image.Draw(drawableStrokeColor,drawableFont, drawableText);
and I get
The class ImageMagick.MagickImage does not contain this function.
witch is, obviously, not true. My development evironment (called MorpX) throws this error whenever the parameters passed to a c# class/function are not correct or missing. Do you have an ideea what I'm missing?

Viewing all articles
Browse latest Browse all 3693

Trending Articles