ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [OT] \internalfigure
@ 2007-11-20 22:29 luigi scarso
  2007-11-20 23:26 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: luigi scarso @ 2007-11-20 22:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 636 bytes --]

We all know that exists \externalfigure[...][...]
Now, suppose I'm able to make a buffer with raw data,
something like
\Raw{<89>PNG^M
^Z
^@^@^@^MIHDR^@^@^@
^@^@^@
^H^B^@^@^@^BPXê^@^@^@^AsRGB^@(R)Î^\é^@^@^@
pHYs^@^@^K^S^@^@^K^S^A^@<9a><9c>^X^@^@^@^GtIME^G×^K^T^V^W
^O°<94>^^^@^@^@^YtEXtComment^@Created with
GIMPW<81>^N^W^@^@^@^MIDAT^XÓc`^X^E¤^C^@^A6^@^A^ZÕ<8d>^W^@^@^@^@IEND(R)B`<82>}
(it's a black png 10x10 pixel, in attach.)
How can I use it with, let's say
\internalfigure[\Raw][...] ?
Of course, write it down to a temp file and then use
\externalfigure[temp][..],
but I would like to avoid this way .
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 817 bytes --]

[-- Attachment #2: a.png --]
[-- Type: image/png, Size: 160 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OT] \internalfigure
  2007-11-20 22:29 [OT] \internalfigure luigi scarso
@ 2007-11-20 23:26 ` Hans Hagen
  2007-11-20 23:33   ` luigi scarso
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2007-11-20 23:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

luigi scarso wrote:
> We all know that exists \externalfigure[...][...]
> Now, suppose I'm able to make a buffer with raw data,
> something like
> \Raw{<89>PNG^M
> ^Z
> ^@^@^@^MIHDR^@^@^@
> ^@^@^@
> ^H^B^@^@^@^BPXê^@^@^@^AsRGB^@(R)Î^\é^@^@^@
> pHYs^@^@^K^S^@^@^K^S^A^@<9a><9c>^X^@^@^@^GtIME^G×^K^T^V^W
> ^O°<94>^^^@^@^@^YtEXtComment^@Created with
> GIMPW<81>^N^W^@^@^@^MIDAT^XÓc`^X^E¤^C^@^A6^@^A^ZÕ<8d>^W^@^@^@^@IEND(R)B`<82>}
> (it's a black png 10x10 pixel, in attach.)
> How can I use it with, let's say
> \internalfigure[\Raw][...] ?
> Of course, write it down to a temp file and then use
> \externalfigure[temp][..],
> but I would like to avoid this way .

you mean that the bytes should become an image?

well, you can try some pdf magic using inline image date in hex format 
or so, but i never looked into that

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OT] \internalfigure
  2007-11-20 23:26 ` Hans Hagen
@ 2007-11-20 23:33   ` luigi scarso
  2007-11-21  0:16     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: luigi scarso @ 2007-11-20 23:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1020 bytes --]

On Nov 21, 2007 12:26 AM, Hans Hagen <pragma@wxs.nl> wrote:

> luigi scarso wrote:
> > We all know that exists \externalfigure[...][...]
> > Now, suppose I'm able to make a buffer with raw data,
> > something like
> > \Raw{<89>PNG^M
> > ^Z
> > ^@^@^@^MIHDR^@^@^@
> > ^@^@^@
> > ^H^B^@^@^@^BPXê^@^@^@^AsRGB^@(R)Î^\é^@^@^@
> > pHYs^@^@^K^S^@^@^K^S^A^@<9a><9c>^X^@^@^@^GtIME^G×^K^T^V^W
> > ^O°<94>^^^@^@^@^YtEXtComment^@Created with
> >
> GIMPW<81>^N^W^@^@^@^MIDAT^XÓc`^X^E¤^C^@^A6^@^A^ZÕ<8d>^W^@^@^@^@IEND(R)B`<82>}
> > (it's a black png 10x10 pixel, in attach.)
> > How can I use it with, let's say
> > \internalfigure[\Raw][...] ?
> > Of course, write it down to a temp file and then use
> > \externalfigure[temp][..],
> > but I would like to avoid this way .
>
> you mean that the bytes should become an image?
>
yes, exactly so

>
> well, you can try some pdf magic using inline image date in hex format
> or so, but i never looked into that
>
a little suggestion .....?


-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1616 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OT] \internalfigure
  2007-11-20 23:33   ` luigi scarso
@ 2007-11-21  0:16     ` Hans Hagen
  2007-11-21  8:05       ` luigi scarso
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2007-11-21  0:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

luigi scarso wrote:
> On Nov 21, 2007 12:26 AM, Hans Hagen <pragma@wxs.nl> wrote:
> 
>> luigi scarso wrote:
>>> We all know that exists \externalfigure[...][...]
>>> Now, suppose I'm able to make a buffer with raw data,
>>> something like
>>> \Raw{<89>PNG^M
>>> ^Z
>>> ^@^@^@^MIHDR^@^@^@
>>> ^@^@^@
>>> ^H^B^@^@^@^BPXê^@^@^@^AsRGB^@(R)Î^\é^@^@^@
>>> pHYs^@^@^K^S^@^@^K^S^A^@<9a><9c>^X^@^@^@^GtIME^G×^K^T^V^W
>>> ^O°<94>^^^@^@^@^YtEXtComment^@Created with
>>>
>> GIMPW<81>^N^W^@^@^@^MIDAT^XÓc`^X^E¤^C^@^A6^@^A^ZÕ<8d>^W^@^@^@^@IEND(R)B`<82>}
>>> (it's a black png 10x10 pixel, in attach.)
>>> How can I use it with, let's say
>>> \internalfigure[\Raw][...] ?
>>> Of course, write it down to a temp file and then use
>>> \externalfigure[temp][..],
>>> but I would like to avoid this way .
>> you mean that the bytes should become an image?
>>
> yes, exactly so
> 
>> well, you can try some pdf magic using inline image date in hex format
>> or so, but i never looked into that
>>
> a little suggestion .....?

pdf ref manual :

SECTION 4.9 Form XObjects
355
Example 4.30
q% Save graphics state
17 0 0 17 298 388 cm% Scale and translate coordinate space
BI% Begin inline image object
/W 17% Width in samples
/H 17% Height in samples
/CS /RGB% Color space
/BPC 8% Bits per component
/F [ /A85 /LZW ]% Filters
ID% Begin image data
J1/gKA>.]AN&J?]-<HW]aRVcg*bb.\eKAdVV%/PcZ
… Omitted data …
R.s(4KE3&d&7hb*7[%Ct2HCqC~>
EI% End inline image object
Q% Restore graphics state


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OT] \internalfigure
  2007-11-21  0:16     ` Hans Hagen
@ 2007-11-21  8:05       ` luigi scarso
  0 siblings, 0 replies; 5+ messages in thread
From: luigi scarso @ 2007-11-21  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 542 bytes --]

>
> pdf ref manual :
>
> SECTION 4.9 Form XObjects
> 355
> Example 4.30
> q% Save graphics state
> 17 0 0 17 298 388 cm% Scale and translate coordinate space
> BI% Begin inline image object
> /W 17% Width in samples
> /H 17% Height in samples
> /CS /RGB% Color space
> /BPC 8% Bits per component
> /F [ /A85 /LZW ]% Filters
> ID% Begin image data
> J1/gKA>.]AN&J?]-<HW]aRVcg*bb.\eKAdVV%/PcZ
> … Omitted data …
> R.s(4KE3&d&7hb*7[%Ct2HCqC~>
> EI% End inline image object
> Q% Restore graphics state
>
> good.
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-21  8:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-20 22:29 [OT] \internalfigure luigi scarso
2007-11-20 23:26 ` Hans Hagen
2007-11-20 23:33   ` luigi scarso
2007-11-21  0:16     ` Hans Hagen
2007-11-21  8:05       ` luigi scarso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).