Re: text2picture

2018-02-15 Thread Pat Bensky via 4D_Tech
Hi JPR,
Could you please send me that demo db?
Thanks!

Pat

On 14 February 2018 at 20:24, JPR via 4D_Tech <4d_tech@lists.4d.com> wrote:

> [JPR]
>
> Hi Jörg,
>
> Long time ago (maybe 20 years ago...), I wrote a 4D routine (not a
> plug-in) which was building a PICT in a BLOB, with QuickDraw pure code
> imbedded into a PICT.
>
> This doesn't work anymore since we had to say 'Goodbye an Thanks a lot' to
> QuickDraw.
>
> This is why I've given a replacement routine written in 4D also, and
> producing a SVG picture. If you need it, just tell me and I will be more
> than happy to send the demo database.
>
> My very best,
>
> JPR
>
>
> > On 14 Feb 2018, at 21:00, 4d_tech-requ...@lists.4d.com wrote:
> >
> > From: Jörg Knebel <jkne...@tttdatasystems.com.au>
> > To: 4D Tech Mailing List Technical <4d_tech@lists.4d.com>
> > Subject: text2picture
> > Message-ID:
> >   <9e84d505-08cf-4cef-9db9-50a36dd7f...@tttdatasystems.com.au>
> > Content-Type: text/plain; charset=utf-8
> >
> > Hi All,
> >
> > I read in the iNug archive about a free routine by JPR using only native
> 4D commands to accomplish that.
> >
> > Does someone know where I can find that method?
> >
> > Much appreciated.
> >
> > Cheers
> > Jörg
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread Keisuke Miyako via 4D_Tech
Hello,

in the context of creating a visual representation of the data file,
it is better to NOT use SVG but rather create a BMP (which is what JPR showed 
in his "DataAnalyzer")
because you are just drawing simple squares.

https://en.wikipedia.org/wiki/BMP_file_format

(why stress the SVG rendering engine if the image is bitmap?)

if you intend to export the image,
it might be better if you could go a step further and compress the BMP as PNG.

but on screen, there is a bitmap drawing context in the background anyway,
so you might decide to stay with bitmap.

the advantage (again, as JPR demonstrated) is that you can locate pixel data 
for any position.

the best thing about SVG is that it's scalable.

on the other hand, if scalability is not an issue,
and you are not particularly interested in the XML backend,
SVG might actually be a bad choice on screen.

for example, if you use GRAPH or DOM or the SVG component to create an SVG 
chart,
and you don't need to scale it,
or respond to click,
or change it by code,
in other words if the image is static,
you might as well convert the image to BMP or PNG for display.

keeping a static SVG on screen creates a lot of unnecessary work for the 
rendering engine.

same for the original post, which was about creating images of text by code.
if you need to print it, or if you want to be DPI aware, then you might 
consider SVG.

but if the idea is to create some static image on the fly,
you might want to convert the SVG to PNG once the picture is generated.

> 2018/02/15 5:23、Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> I believe he did something similar when he created “DataAnalyzer” that would 
> map out a 4D data file and create picture of what was stored where. I think 
> he created the picture for that pixel by pixel, byte by byte for that too. 
> Pretty amazing.
>
> I would abandon trying to use this now as 4D has depreciated the PICT picture 
> format. I agree with Alexander that SVG would be a better solution.




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread Jörg Knebel via 4D_Tech
G’day JPR,

> On 15 Feb 2018, at 07:24 AEDT, JPR via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> Long time ago (maybe 20 years ago...), I wrote a 4D routine (not a plug-in) 
> which was building a PICT in a BLOB

That was the one I remembered, so my Alzheimers isn’t that bad after all.

Arnaud already sent me your demo in a PM and I’ll take it from there .

Cheers
Jörg
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread Ingo Wolf via 4D_Tech
Back then JPR had pure 4D code to build a PICT picture containing the desired 
text. Now, as PICT is obsolete, stick to SVG. It‘s pretty easy.

HTH
Ingo Wolf

__ 
ViELMAC Ingo Wolf
Rheinhessenring 53A
D 55597 Wöllstein
Tel. +49 (0)6703 3070320
Fax +49 (0)6703 3070321
e-Mail i...@vielmac.de

> Am 14.02.2018 um 21:00 schrieb 4d_tech-requ...@lists.4d.com:
> 
> Hi All,
> 
> I read in the iNug archive about a free routine by JPR using only native 4D 
> commands to accomplish that.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread JPR via 4D_Tech
[JPR]

Hi Jörg,

Long time ago (maybe 20 years ago...), I wrote a 4D routine (not a plug-in) 
which was building a PICT in a BLOB, with QuickDraw pure code imbedded into a 
PICT.

This doesn't work anymore since we had to say 'Goodbye an Thanks a lot' to 
QuickDraw.

This is why I've given a replacement routine written in 4D also, and producing 
a SVG picture. If you need it, just tell me and I will be more than happy to 
send the demo database.

My very best,

JPR


> On 14 Feb 2018, at 21:00, 4d_tech-requ...@lists.4d.com wrote:
> 
> From: Jörg Knebel <jkne...@tttdatasystems.com.au>
> To: 4D Tech Mailing List Technical <4d_tech@lists.4d.com>
> Subject: text2picture
> Message-ID:
>   <9e84d505-08cf-4cef-9db9-50a36dd7f...@tttdatasystems.com.au>
> Content-Type: text/plain; charset=utf-8
> 
> Hi All,
> 
> I read in the iNug archive about a free routine by JPR using only native 4D 
> commands to accomplish that.
> 
> Does someone know where I can find that method?
> 
> Much appreciated.
> 
> Cheers
> Jörg

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread Tim Nevels via 4D_Tech
On Feb 14, 2018, at 2:00 PM,Herr Alexander Heintz wrote:

>>> Most likely a wrapper for 4 lines of SVG code…
>> 
>> Was SVG around 157 month ago?
> 
> SVG as a format?
> Most likely
> in 4D, I don’t think so…
> But why not use SVG if available?
> Its blinding fast


What Jörg is talking about is some code JPR wrote that would create Macintosh 
PICT format pictures creating them byte by byte. It was a very clever idea. He 
had to learn the format and structure of a PICT file and then create 4D code 
that would do the work of creating the bytes to make it into a legitimate 
picture that 4D could display using QuickTime. 

I believe he did something similar when he created “DataAnalyzer” that would 
map out a 4D data file and create picture of what was stored where. I think he 
created the picture for that pixel by pixel, byte by byte for that too. Pretty 
amazing.

I would abandon trying to use this now as 4D has depreciated the PICT picture 
format. I agree with Alexander that SVG would be a better solution.

Tim

Tim Nevels 
timnev...@mac.com 
Innovative Solutions
785-749-3444


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread Peter Bozek via 4D_Tech
On Wed, Feb 14, 2018 at 11:06 AM, Jörg Knebel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> > On 14 Feb 2018, at 21:03 AEDT, Herr Alexander Heintz via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > But why not use SVG if available?
> > Its blinding fast
>
>
> I’ll take a look into it.
>

Long time ago there was really a JPR code that used 4D Draw or some other
plugin. Currently, SVG can do that easily, look up  discussion of
"textarea" element.

--

Peter Bozek
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread Jörg Knebel via 4D_Tech

> On 14 Feb 2018, at 21:03 AEDT, Herr Alexander Heintz via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> But why not use SVG if available?
> Its blinding fast


I’ll take a look into it.

 Thanks mate
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread Herr Alexander Heintz via 4D_Tech
>> Most likely a wrapper for 4 lines of SVG code…
> 
> Was SVG around 157 month ago?

SVG as a format?
Most likely
in 4D, I don’t think so…
But why not use SVG if available?
Its blinding fast

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread Jörg Knebel via 4D_Tech

> On 14 Feb 2018, at 19:24 AEDT, Herr Alexander Heintz via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Most likely a wrapper for 4 lines of SVG code…

Was SVG around 157 month ago?
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: text2picture

2018-02-14 Thread Herr Alexander Heintz via 4D_Tech
Most likely a wrapper for 4 lines of SVG code…

> Am 14.02.2018 um 08:53 schrieb Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com>:
> 
> Hi All,
> 
> I read in the iNug archive about a free routine by JPR using only native 4D 
> commands to accomplish that.
> 
> Does someone know where I can find that method?
> 
> Much appreciated.
> 
> Cheers
> Jörg
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

text2picture

2018-02-13 Thread Jörg Knebel via 4D_Tech
Hi All,

I read in the iNug archive about a free routine by JPR using only native 4D 
commands to accomplish that.

Does someone know where I can find that method?

Much appreciated.

Cheers
Jörg
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**