Xojo Conferences
XDCMay2019MiamiUSA

graphics in console apps? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Socket Error #107 when quitting
Next thread: Would Strongly typed dictionaries in RB be faster than using variants ?


FolderItem--IsReadable   -   Claude Stone
  graphics in console apps?   -   Joe Strout
   Re: graphics in console apps?   -   Charles Yeomans
   Re: graphics in console apps?   -   dda
   Re: graphics in console apps?   -   Norman Palardy
   Re: graphics in console apps?   -   Joe Strout
   Re: graphics in console apps?   -   Fargo Holiday
   Re: graphics in console apps?   -   Andrew Keller
   Re: graphics in console apps?   -   Arnaud Nicolet
   Re: graphics in console apps?   -   Norman Palardy
   Re: graphics in console apps?   -   Adam Shirey
    Re: graphics in console apps?   -   Fargo Holiday
   Re: graphics in console apps?   -   Joe Strout
   Re: graphics in console apps?   -   Adam Shirey
   Re: graphics in console apps?   -   dda
   Re: graphics in console apps?   -   John Balestrieri
   Re: graphics in console apps?   -   GregO
   Re: graphics in console apps?   -   James Sentman
   Re: graphics in console apps?   -   Joe Strout
   Re: graphics in console apps?   -   Jim Patek
   Re: graphics in console apps?   -   Andy Dent
   Cairo, anyone? (was Re: graphics in console apps?)   -   Joe Strout

graphics in console apps?
Date: 29.07.08 15:28 (Tue, 29 Jul 2008 08:28:16 -0600)
From: Joe Strout
Does anyone here have a good solution for graphics (i.e. image
manipulation and drawing operations on pixel maps) in RB console
apps? A plugin, or some library we could declare into?

I looked into this a few years ago, and found some decent open-source
libraries for drawing lines and ovals and such, but text rendering was
where it got rather tricky. But things have probably changed since
then anyway. Thanks for any suggestions.

Best,
- Joe

Re: graphics in console apps?
Date: 29.07.08 15:54 (Tue, 29 Jul 2008 10:54:16 -0400)
From: Charles Yeomans

On Jul 29, 2008, at 10:28 AM, Joe Strout wrote:

> Does anyone here have a good solution for graphics (i.e. image
> manipulation and drawing operations on pixel maps) in RB console
> apps? A plugin, or some library we could declare into?
>
> I looked into this a few years ago, and found some decent open-
> source libraries for drawing lines and ovals and such, but text
> rendering was where it got rather tricky. But things have probably
> changed since then anyway. Thanks for any suggestions.

For Mac OS, why not Core Graphics?

Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 29.07.08 15:56 (Tue, 29 Jul 2008 22:56:04 +0800)
From: dda
I haven't updated fPic for Intel, due to the lack of interest there
was when I first released it -- mostly people asked me what da f**k
for? and I think one of my answers was that one day web-related stuff
would spring up the demand for it.

I probably could donate the code base.

Re: graphics in console apps?
Date: 29.07.08 16:03 (Tue, 29 Jul 2008 09:03:26 -0600)
From: Norman Palardy

On 29-Jul-08, at 8:28 AM, Joe Strout wrote:

> Does anyone here have a good solution for graphics (i.e. image
> manipulation and drawing operations on pixel maps) in RB console
> apps? A plugin, or some library we could declare into?
>
> I looked into this a few years ago, and found some decent open-
> source libraries for drawing lines and ovals and such, but text
> rendering was where it got rather tricky. But things have probably
> changed since then anyway. Thanks for any suggestions.
>
> Best,
> - Joe
>>
>> From: dda <headspin at gmail dot com>
>> Date: Sat, 21 Apr 2007 14:56:22 +0800

>> I have a class for console app that provides a replacement for the
>> Graphics class. It is a work in progress, but already works fairly
>> well. I had mentioned it here before, but apparently the idea of
>> using
>> pictures in console apps back then seemed idiotic to some readers --
>> seeing from the answers I had gotten privately.
>>
>> Message me privately if you're interested.
>>
>> --
>> dda
>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 29.07.08 16:06 (Tue, 29 Jul 2008 09:06:19 -0600)
From: Joe Strout
On Jul 29, 2008, at 8:54 AM, Charles Yeomans wrote:

> For Mac OS, why not Core Graphics?

Because then I'd have to find something else for Windows and Linux
(and I'd prefer to find only one thing that can build for all three).

Best,
- Joe

Re: graphics in console apps?
Date: 29.07.08 18:02 (Tue, 29 Jul 2008 10:02:45 -0700)
From: Fargo Holiday
Joe Strout wrote:
> Does anyone here have a good solution for graphics (i.e. image
> manipulation and drawing operations on pixel maps) in RB console apps?
> A plugin, or some library we could declare into?
>
> I looked into this a few years ago, and found some decent open-source
> libraries for drawing lines and ovals and such, but text rendering was
> where it got rather tricky. But things have probably changed since then
> anyway. Thanks for any suggestions.
>
> Best,
> - Joe
>
> --
> Joe Strout
> Inspiring Applications, Inc.
> http://www.InspiringApps.com

For displaying, I got nothing, but for edits and conversions you might
look at ImageMagick. I don't know how easy it would be to link up with
RB, and their website seems to be having some issues currently, but I
figure it's worth a peek. Should you be able to get to the website, that is.

I suppose you might find something in the Tcl/Tk family to render
graphics, but I don't really know.

Best of luck,
Fargo

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 29.07.08 18:54 (Tue, 29 Jul 2008 13:54:47 -0400)
From: Andrew Keller
On Jul 29, 2008, at 10:56 AM, dda wrote:

> ... mostly people asked me what da f**k for? and I think one of my
> answers was that one day web-related stuff ...

Distributed computing.

Many distributed computing platforms, including Xgrid, only run
command-line programs.

On the other hand, if you are really into hard core high performance
computing, then you'll probably use a language like one of the C's.
But quite often I find myself wanting to just whip up a program like I
can in RB. If you have a fast network, then you can spare the
bandwidth to transfer RB's slightly larger executables with no
problem. I've done it before, but never with graphics.

It would be very cool if we could do graphics processing on a platform
like Xgrid using apps made with RB - but that would require something
like the Graphics class available to console apps.

- Andrew Keller

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 29.07.08 19:09 (Tue, 29 Jul 2008 20:09:35 +0200)
From: Arnaud Nicolet
Le 29 juil. 08 à 19:02 (soir), Fargo Holiday a écrit:

> Joe Strout wrote:
>> Does anyone here have a good solution for graphics (i.e. image
>> manipulation and drawing operations on pixel maps) in RB console
>> apps? A plugin, or some library we could declare into?
>> I looked into this a few years ago, and found some decent open-
>> source libraries for drawing lines and ovals and such, but text
>> rendering was where it got rather tricky. But things have
>> probably changed since then anyway. Thanks for any suggestions.
>> Best,
>> - Joe
>> --
>> Joe Strout
>> Inspiring Applications, Inc.
>> http://www.InspiringApps.com
>
> For displaying, I got nothing, but for edits and conversions you
> might look at ImageMagick. I don't know how easy it would be to
> link up with RB, and their website seems to be having some issues
> currently, but I figure it's worth a peek. Should you be able to
> get to the website, that is.
>
> I suppose you might find something in the Tcl/Tk family to render
> graphics, but I don't really know.

The MBS plugin has things to use ImageMagick.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 29.07.08 19:17 (Tue, 29 Jul 2008 12:17:10 -0600)
From: Norman Palardy

On 29-Jul-08, at 11:54 AM, Andrew Keller wrote:

> On Jul 29, 2008, at 10:56 AM, dda wrote:
>
>> ... mostly people asked me what da f**k for? and I think one of my
>> answers was that one day web-related stuff ...
>
> Distributed computing.
>
> Many distributed computing platforms, including Xgrid, only run
> command-line programs.
>
> On the other hand, if you are really into hard core high
> performance computing, then you'll probably use a language like one
> of the C's. But quite often I find myself wanting to just whip up
> a program like I can in RB. If you have a fast network, then you
> can spare the bandwidth to transfer RB's slightly larger
> executables with no problem. I've done it before, but never with
> graphics.
>
> It would be very cool if we could do graphics processing on a
> platform like Xgrid using apps made with RB - but that would
> require something like the Graphics class available to console apps.
>

I've never looked at the internals but if it relies on Quicktime then
that may be an issue as I believe Quicktime expects to have a Window
Server and a console app won't have one




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 29.07.08 19:18 (Tue, 29 Jul 2008 13:18:14 -0500)
From: Adam Shirey
Will FreeImage work for you? If so, I've got a pretty good subset of
functionality available in a wrapper. See my website. I've tested on
Mac and Windows, but haven't had the time to try out Linux (mostly due
to the fact that I haven't figured out what the appropriate library
name is).

freeimage.sourceforge.net
dingostick.com

-Adam



On Tue, Jul 29, 2008 at 10:06 AM, Joe Strout <<email address removed>> wrote:
> On Jul 29, 2008, at 8:54 AM, Charles Yeomans wrote:
>
>> For Mac OS, why not Core Graphics?
>
> Because then I'd have to find something else for Windows and Linux (and I'd
> prefer to find only one thing that can build for all three).
>
> Best,
> - Joe
>
> --
> Joe Strout
> Inspiring Applications, Inc.
> http://www.InspiringApps.com
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 29.07.08 19:44 (Tue, 29 Jul 2008 11:44:22 -0700)
From: Fargo Holiday
libfreeimage<major version>. In the case of Ubuntu 8.04, that would be
libfreeimage3.

Adam Shirey wrote:
> Will FreeImage work for you? If so, I've got a pretty good subset of
> functionality available in a wrapper. See my website. I've tested on
> Mac and Windows, but haven't had the time to try out Linux (mostly due
> to the fact that I haven't figured out what the appropriate library
> name is).
>
> freeimage.sourceforge.net
> dingostick.com
>
> -Adam
>
> On Tue, Jul 29, 2008 at 10:06 AM, Joe Strout <<email address removed>> wrote:
>> On Jul 29, 2008, at 8:54 AM, Charles Yeomans wrote:
>>
>>> For Mac OS, why not Core Graphics?
>> Because then I'd have to find something else for Windows and Linux (and I'd
>> prefer to find only one thing that can build for all three).
>>
>> Best,
>> - Joe
>>
>> --
>> Joe Strout
>> Inspiring Applications, Inc.
>> http://www.InspiringApps.com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 29.07.08 22:23 (Tue, 29 Jul 2008 15:23:44 -0600)
From: Joe Strout
On Jul 29, 2008, at 12:18 PM, Adam Shirey wrote:

> Will FreeImage work for you?

I'm not sure. Does it actually do drawing (including text
rendering)? Or is it just about reading/cropping/writing images?

Thanks,
- Joe

Re: graphics in console apps?
Date: 29.07.08 22:37 (Tue, 29 Jul 2008 16:37:38 -0500)
From: Adam Shirey
On Tue, Jul 29, 2008 at 4:23 PM, Joe Strout <<email address removed>> wrote:
> On Jul 29, 2008, at 12:18 PM, Adam Shirey wrote:
>
>> Will FreeImage work for you?
>
> I'm not sure. Does it actually do drawing (including text rendering)? Or
> is it just about reading/cropping/writing images?
>
> Thanks,

It does not include text rendering, and, IIRC, it does not include
shape drawing (filled or open polygons, ovals, etc). It is a pretty
feature-rich image manipulation library, though that probably matters
little if shapes and text are a requirement.

-Adam
dingostick.com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 30.07.08 01:30 (Wed, 30 Jul 2008 08:30:39 +0800)
From: dda
For text there's freetext, which I used in fPic. Works pretty well...

Re: graphics in console apps?
Date: 30.07.08 02:56 (Tue, 29 Jul 2008 21:56:01 -0400)
From: John Balestrieri
For fancier stuff, SVG & Batik

<http://xmlgraphics.apache.org/batik/>

I've used it to rasterize SVG in command-line apps. For SVG
generation, I use my SuperGraphics library, but IIRC, Batik also
supports SVG generation.

John

On Jul 29, 2008, at 10:28 AM, Joe Strout wrote:

> Does anyone here have a good solution for graphics (i.e. image
> manipulation and drawing operations on pixel maps) in RB console
> apps? A plugin, or some library we could declare into?
>
> I looked into this a few years ago, and found some decent open-
> source libraries for drawing lines and ovals and such, but text
> rendering was where it got rather tricky. But things have probably
> changed since then anyway. Thanks for any suggestions.
>
> Best,
> - Joe
>
> --
> Joe Strout
> Inspiring Applications, Inc.
> http://www.InspiringApps.com
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 30.07.08 13:51 (Wed, 30 Jul 2008 08:51:46 -0400)
From: GregO
On Jul 29, 2008, at 10:28 am, Joe Strout wrote:

> Does anyone here have a good solution for graphics (i.e. image
> manipulation and drawing operations on pixel maps) in RB console
> apps? A plugin, or some library we could declare into?
>
> I looked into this a few years ago, and found some decent open-
> source libraries for drawing lines and ovals and such, but text
> rendering was where it got rather tricky. But things have probably
> changed since then anyway. Thanks for any suggestions.

Joe,

Might it just be easier to put in a feature request to have the
graphics class enabled for console apps?

Greg

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 30.07.08 14:14 (Wed, 30 Jul 2008 09:14:02 -0400)
From: James Sentman

On Jul 30, 2008, at 8:51 AM, GregO wrote:

> On Jul 29, 2008, at 10:28 am, Joe Strout wrote:
>
>> Does anyone here have a good solution for graphics (i.e. image
>> manipulation and drawing operations on pixel maps) in RB console
>> apps? A plugin, or some library we could declare into?
>>
>> I looked into this a few years ago, and found some decent open-
>> source libraries for drawing lines and ovals and such, but text
>> rendering was where it got rather tricky. But things have probably
>> changed since then anyway. Thanks for any suggestions.
>
> Joe,
>
> Might it just be easier to put in a feature request to have the
> graphics class enabled for console apps?

It was just in recent memory that they removed it. It required too
many extra libraries be installed on Linux as I recall which were
typically not there on non-UI server type systems.

Though I dont see why we couldn't have a checkbox or something to
include it or not include it as necessary. The work was already done
not all that long ago.

Thanks,
James

James Sentman http://sentman.com http://MacHomeAutomation.com



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 30.07.08 15:17 (Wed, 30 Jul 2008 08:17:08 -0600)
From: Joe Strout
On Jul 30, 2008, at 6:51 AM, GregO wrote:

>> I looked into this a few years ago, and found some decent open-
>> source libraries for drawing lines and ovals and such, but text
>> rendering was where it got rather tricky. But things have probably
>> changed since then anyway. Thanks for any suggestions.
>
> Might it just be easier to put in a feature request to have the
> graphics class enabled for console apps?

Easy to put it in, yes, but I doubt that doing so would have any
effect (at least on the time frame I require). Graphics in console
apps is something that's been wanted in RB for years, and if it hasn't
been implemented in all that time, I doubt it'll be added in the next
few weeks.

Best,
- Joe

Re: graphics in console apps?
Date: 30.07.08 17:03 (Wed, 30 Jul 2008 11:03:40 -0500)
From: Jim Patek
I have a couple of console apps (Windows and Linux) that generate
graphics. I used the DISLIN (Max Plank Institute) which is an excellent
graphic library. Unfortunately I couldn't figure out how to call DISLIN
from RB, so I have an intermediate app (in C or Fortran) that RB calls
with the information required and they call DISLIN and produce the
graphics in PNG format. Kind of a kludge, but it works. Maybe we could
talk the Max Plank Institute into producing DISLIN for RB (its available
for a number of other languages).

Jim

Joe Strout wrote:
> Does anyone here have a good solution for graphics (i.e. image
> manipulation and drawing operations on pixel maps) in RB console
> apps? A plugin, or some library we could declare into?
>
> I looked into this a few years ago, and found some decent open-source
> libraries for drawing lines and ovals and such, but text rendering was
> where it got rather tricky. But things have probably changed since
> then anyway. Thanks for any suggestions.
>
> Best,
> - Joe
>
> --
> Joe Strout
> Inspiring Applications, Inc.
> http://www.InspiringApps.com
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: graphics in console apps?
Date: 31.07.08 08:48 (Thu, 31 Jul 2008 15:48:20 +0800)
From: Andy Dent

On 30/07/2008, at 9:56 AM, John Balestrieri wrote:

> For fancier stuff, SVG & Batik
>
> <http://xmlgraphics.apache.org/batik/>
> I've used it to rasterize SVG in command-line apps.

Inkscape < http://www.inkscape.org/> also does a good job at command-
line SVG rasterisation and is quicker to fire up and rasterise than
the Java-based batik.

I've used it before in a rendering pipeline for GraphViz because the
Windows renderer in GraphViz didn't anti-aliase and curves looked
terrible.

Inkscape is a native app on most platforms.

FYI GraphViz is now using the Cairo libraries to provide smooth
drawing on most platforms other than OS/X.

Andy Dent
Freelance Designer-Developer - C++, C#, Objective-C, Python, REALbasic

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>