Re: Include bitmap in ipe XML file

"zetah" <[email protected]>
Newsgroups gmane.comp.graphics.ipe.general
Message-ID <[email protected]>
>The contents of the <bitmap> or <image> element must be the actual pixel 
>data (not a PNG file contents).  Assuming a color image, you need to 
>dump the pixel values, starting at the top left, going row by row, until 
>the bottom right.
>
>You don't need to compress or base64-encode, just dump the values in 
>hexadecimal (so six hexadecimal digits are one RRGGBB pixel).  You can 
>include spaces or new-lines, they are ignored.
>
>E.g.
>
><bitmap id="1" width="10" height="10" ColorSpace="DeviceRGB" BitsPerComponent="8">
>7a3400000000ff0000ff0000aa3478....
></bitmap>

Thank. This makes more sense then encoding file contents, as later ipe would need to decrypt bitmap file format...
Works as expected now :)


>This syntax is for Ipe 7, but I'm pretty sure it did not change between 
>Ipe 6 and Ipe 7.  Definitely the main point was the same: don't set a 
>filter, and include the image contents in hexadecimal (Base-64 encoding 
>was added in Ipe 7.0.5).
>
>And of course Ipe 6 is really outdated now - it got obsolete in 2009... 
>  Is there any reason why you don't move to Ipe 7?

I took a task (assigned from myself :)) to find acceptable method in practice for closing dense contours with gaps. It took me some time to find working solution (some features of Voronoi vertices and constraint Delaunay triangulation - Amenta crust algorithm) and obvious ready made tools like CGAL. It turned out that CGAL operators can be used as ipelets so I have powerful GUI interface to CGAL! It's such a pleasure, I can't state it... However although I have Ubuntu PC around, I mostly work on Windows and I found ready made ipelets for Ipe 6, then I found Ipe 6 binary archived by archive.org and that's it. Works for me :)


Cheers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.