Re: can one convert drawable XmlSerializer xmlns file into GIF or PNG?




"Joe" <joe1977@xxxxxxx> wrote in message news:e11a9e42-bfd1-4b91-be9e-50e0c994571d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 14, 6:12 pm, "Lloyd Sheen" <a...@xxx> wrote:
"Joe" <joe1...@xxxxxxx> wrote in message

news:32650fa5-968a-4472-99f7-85b307620716@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 14, 5:02 pm, "Lloyd Sheen" <a...@xxx> wrote:





> "Joe" <joe1...@xxxxxxx> wrote in message

>news:4d417251-f602-47fe-a991-9f25394d70ba@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> On Apr 14, 3:52 pm, "Lloyd Sheen" <a...@xxx> wrote:

> > "Joe" <joe1...@xxxxxxx> wrote in message

> >news:c22c90dc-60d8-4717-9847-1e6b4e992d9f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > On Apr 14, 2:53 pm, "Lloyd Sheen" <a...@xxx> wrote:

> > > "Joe" <joe1...@xxxxxxx> wrote in message

> > >news:e2dfc716-d6a2-42fb-b14a-70d267f2a07a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > > On Apr 14, 2:21 pm, "Lloyd Sheen" <a...@xxx> wrote:

> > > > "Joe" <joe1...@xxxxxxx> wrote in message

> > > >news:d0d229ff-e0e8-49ea-866e-8d5cca2b39ac@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > > > On Apr 14, 1:28 pm, "Lloyd Sheen" <a...@xxx> wrote:

> > > > > "Joe" <joe1...@xxxxxxx> wrote in message

> > > > LLoyd, your solution would work out, if not that: 1) I have an
> > > > application to draw (like a diagram thing), this application is
> > > > perfect but dumps result into that xmlns file... I am just simply
> > > > trying to read it back into some GIF file....

> > > > That is the point. You have a file with instuctions on how to > > > > create
> > > > the
> > > > graphic. So the aspx file would take the filename as a querystring
> > > > and
> > > > then
> > > > create the graphic (could be a gif) and pass that to the repsonse.
> > > > In
> > > > reality that is what is being done with a straight gif URL.

> > > > LS

> > > ok, so I need a script that will "read" xmlns file and create an > > > image
> > > file according to content.
> > > Rather than having every function being rewritten by myself, I am
> > > looking for a library (script) that already does that....

> > > Where do you get these files from? It looks like (but I know it > > > isn't)
> > > a
> > > metafile with commands used to draw images. Googling I find a Scilab
> > > graphics class. Does your app have a reference to this. If so I > > > would
> > > think there might be methods in the class library which would take > > > the
> > > info
> > > and draw a graphic.

> > > And not to be a traffic cop here but deleting part of the thread > > > makes
> > > responding difficult for me and most likely impossible for others > > > who
> > > join
> > > late.

> > > LS- Hide quoted text -

> > > - Show quoted text -

> > I am sorry for not providing you more info. I need a simple "map"
> > drawing functionality and this resource is a perfect
> > solution:http://www.vb-helper.com/howto_net_drawing_framework.html

> > the only problem is that this outputs PIC XMLserialize file instead of
> > a GIF/PNG file which I am trying to achieve...

> > Thank you.

> > Have you downloaded the framework that is pointed at in the web page? > > If
> > so
> > is there a method to draw the graphics? The first method on the page
> > mentions a Draw routine which takes a Graphics object as a parameter. > > In
> > the sample I provided you will notice that it uses a Graphics object > > to
> > draw
> > on.

> > A combination of the two should do the job.

> > Lloyd Sheen- Hide quoted text -

> > - Show quoted text -

> they would... but it does not use Graphics object... it use
> XMLSerialize to write into file and back from it only coordinance of
> each objects... it is not a picture, it is a group of XML serialized
> shapes... :(

> Is there no implementation of the Draw method in the framework?- Hide
> quoted text -

> - Show quoted text -

unfortunately no :(

Since I don't know what you want to do with those files I guess this is as
far as I can take you.

LS- Hide quoted text -

- Show quoted text -

that's simple I just want to save them into GIF format, but I need a
little help showing me how to extract photo data from that
XMLSerialize document...
hope that make sense...


From what I see there is only a rectangle. It seems to have the coordinates
of the upper left corner and bottom right corner, along with the width of the line to be drawn and various colour information. I would hope that the framework you are using has documentation for the various pieces.

What you would get is a rectangle which I think by itsself is just that.

You have two tasks. First to extract the info and second to draw.

I suggest you read up on XML first. That will extract your info. Without knowing what the schema of the XML is I can't help much here but there is lots of docs on using XML in Dot.Net.

Then you need to investigate the drawing classes. If all you are doing is drawing rectangles that is fairly simple.

LS

.



Relevant Pages