Forum

Question GR32 Bitmap Linux Errors

  • Denis Ducreux
  • Denis Ducreux's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 2 weeks ago #10588 by Denis Ducreux
Denis Ducreux created the topic: GR32 Bitmap Linux Errors
Hello,
I'am trying to code using CT my Image Processing software which uses GR32, but I encountered some bugs:
1- bitmap.textout doesn't work
var
bmp32:tbitmap32;
begin
bmp32:=tbitmap32.create;
bmp32.setsize(128,128);
bmp32.Canvas.brush.Style:=bsclear;
bmp32.Canvas.font.size:=9;
bmp32.Canvas.Font.Color:=clred;
bmp32.canvas.font.Style:=[]
bmp32.canvas.Font.Name:='FreeSans';
bmp32.canvas.Font.PixelsPerInch:=96;

bmp32.Canvas.TextOut(1,1,'Test');
bmp32.SaveToFile('test.bmp');
bmp32.Free;

2- bitmap.ellipse does'nt draw anything
var
abmp32:tbitmap32;
begin
abmp32:=tbitmap32.create;
abmp32.setsize(128,128);
abmp32.Canvas.Brush.Color := clwhite;
abmp32.Canvas.Brush.Style:= bsSolid;
abmp32.Canvas.Pen.Color := clBlack;
abmp32.Canvas.Pen.Width := 2;
abmp32.Canvas.Ellipse(Rect(54,54,74,74));
abmp32.savetofile('test.bmp');
abmp32.free;
end;



I'm under Linux Fedora 25 with KDE Plasma, and CT 6.00 fresh new installed.
Any idea ?
Thank you in advance.

Please Log in or Create an account to join the conversation.

More
6 months 2 weeks ago #10589 by Matis A.
Matis A. replied the topic: GR32 Bitmap Linux Errors
Yes, we try to fix these problems

CodeTyphon Core Programmer

Please Log in or Create an account to join the conversation.