Recent

Author Topic: TBGRABitmap + NoGUI  (Read 24844 times)

Silvio Clécio

  • Guest
Re: TBGRABitmap + NoGUI
« Reply #45 on: January 31, 2013, 03:20:37 pm »
Access violation when I try to run TBGRABitmap + TAChart + NoGUI on Linux.

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: TBGRABitmap + NoGUI
« Reply #46 on: January 31, 2013, 03:21:35 pm »
Oh
Conscience is the debugger of the mind

Silvio Clécio

  • Guest
Re: TBGRABitmap + NoGUI
« Reply #47 on: January 31, 2013, 04:12:46 pm »
I informed the folks of the bugtracker that unfortunately the code does not work in Linux:

http://bugs.freepascal.org/view.php?id=23775

Silvio Clécio

  • Guest
Re: TBGRABitmap + NoGUI
« Reply #48 on: January 31, 2013, 04:24:37 pm »
So, I'm trying to create a layer for generating PDFs and charts in CGI applications.

http://lists.lazarus.freepascal.org/pipermail/lazarus/2013-January/078976.html (now I'm implementing native support for put PNGs in PDFs generated via PowerPDF)

If all goes well, I will create new brokers for Brook framework: http://brookframework.org

I apologize for reporting some bugs simultaneously. :-[

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: TBGRABitmap + NoGUI
« Reply #49 on: January 31, 2013, 04:36:53 pm »
Ok. Sane again.

Please mention the context next time  ;)
Conscience is the debugger of the mind

jmpessoa

  • Hero Member
  • *****
  • Posts: 1607
Re: TBGRABitmap + NoGUI
« Reply #50 on: January 31, 2013, 06:52:07 pm »
Hi Silvio,

you read it here:

From: http://wiki.freepascal.org/Developing_with_Graphics

"You can draw images which won't be displayed in the screen without the LCL, by just using fcl-image directly.

For example a program running on a webserver without X11 could benefit from not having a visual library
as a dependency.

Fcl-image on the other hand also has drawing routines.
For more information, please read the article about fcl-image"

FPImage (alias fcl-image) is a very generic image and drawing library written completely in pascal.

(http://wiki.freepascal.org/fcl-image).


In fact the LCL uses FPImage too for all the loading and saving from/to files and implements the
drawing function through calls to the widgetset (winapi, gtk, carbon, ...).


Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Silvio Clécio

  • Guest
Re: TBGRABitmap + NoGUI
« Reply #51 on: January 31, 2013, 07:31:43 pm »
I know fcl-canvas/image, but it not provide anti-alias support:

http://lists.freepascal.org/lists/fpc-pascal/2013-January/036127.html

My idea using TBGRABitmap is only for provide anti-alias support.

Thank you!

Silvio Clécio

  • Guest
Re: TBGRABitmap + NoGUI
« Reply #52 on: January 31, 2013, 07:33:28 pm »
... and now I'm trying to draw picture with TBGRABitmap (anti-alias) and text (anti-alias) with FCL.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1607
Re: TBGRABitmap + NoGUI
« Reply #53 on: January 31, 2013, 08:20:57 pm »
TBGRABitmap draws purely in memory? 100% NoGUI?

Thanks!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: TBGRABitmap + NoGUI
« Reply #54 on: January 31, 2013, 08:51:53 pm »
Yes, and I am implementing text drawing for NoGUI too. I'm waiting for a patch to be applied to LazUtils, and after that, I will update BGRABitmap with 3 rendering methods for text :
- using LCL (does not work with NoGUI)
- using vectorized fonts (using a fileformat i've made *.glyph)
- using LazFreeType (using TTF files)

The only limitation will be to have necessary files of course, and also :
- vectorized fonts do not handle ClearType rendering yet
- FreeType fonts do not handle text orientation yet, and in TextRect, there is no underline/strikeout
« Last Edit: January 31, 2013, 08:53:47 pm by circular »
Conscience is the debugger of the mind

Silvio Clécio

  • Guest
Re: TBGRABitmap + NoGUI
« Reply #55 on: February 01, 2013, 02:48:49 pm »
> I'm waiting for a patch to be applied to LazUtils ...

What the link to this issue in the bugtracker please? I'll monitorate it.

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: TBGRABitmap + NoGUI
« Reply #56 on: February 01, 2013, 02:52:10 pm »
Conscience is the debugger of the mind

DimProfi

  • Full Member
  • ***
  • Posts: 126
    • http://www.dimprofi.de
Re: TBGRABitmap + NoGUI
« Reply #57 on: October 25, 2015, 07:53:45 pm »
Lazarus 1.2/FPC 2.6.4 (x86/x86_64/win32/win64/Linux) :: Be smart - use predictable {$INTERFACES CORBA}! :)

mai

  • Full Member
  • ***
  • Posts: 133
  • truther
NoGUI
« Reply #58 on: October 30, 2015, 12:24:20 am »
> Note that you must avoid using text functions

Yes, I changed my demo

I put together a proper project which does work in Linux.

no GUI, no window, no console output,  just some file I/O like stuxnet. Hence no screenshots  :-X

even though one sees a little square appearing on the screen for an instant ... which disappears if IDEmacro "LCLwidgetset:= nogui" instead of gtk2 is effective.
« Last Edit: October 30, 2015, 12:39:27 am by mai »

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: TBGRABitmap + NoGUI
« Reply #59 on: November 04, 2015, 06:38:56 pm »
Great  :)
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018