[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: The GIMP 2.0
From:       "Luke Chatburn" <lchatburn () isset ! org>
Date:       2004-01-13 16:16:17
Message-ID: 001501c3d9f0$93ccd940$6601a8c0 () Furies
[Download RAW message or body]

Using an XML data format will work for certain sections, such as vectors and
configuration, but ultimately that is it. You can't describe an image with
full XML describing the individual pixels/strokes; the size of the XML tags
alone would be enormous for a 1024x768 image.

So you end up dumping binary blobs into the XML. That's not such a bad
things, really... You'd end up with something like:

<Krita Image>
    <Config>
        <Width value="x" />
        <Height value="y" />
        <Colour model="RGB" />
    </Config>
<Bitmap Layer>
    <Z value="z" />
    <Merging>
        <Opacity value="o%" />
        <Mapping value="Normal" />
    </Merging>
    <Data>
            ****BLOB****
    </Data>
</Bitmap Layer>
<Bitmap Layer>
.
.
</Bitmap Layer>
<Vector>
    <Vector Layer>
        <Z value="z" />
        <Merging>
            <Opacity value="o%" />
            <Mapping value="Normal" />
        </Merging>
    </Vector Layer>
    <Type value="Circle">
    <Center xvalue="xc" yvalue = "yc">
    <Radius = "r">
    <Drawing fillcolour="rgb" fill="yes" strokewidth="sw" stroke="yes"
strokecolour="rgb">
</Vector>
</Krita Image>

But it wouldn't be very sane to be purely XML for anything else than a
vector package.

-Luke

----- Original Message ----- 
From: <dirk.schoenberger@sz-online.de>
To: "For developer's discussion about KOffice" <koffice-devel@mail.kde.org>
Sent: Tuesday, January 13, 2004 3:40 PM
Subject: Re: The GIMP 2.0


> > dirk.schoenberger@sz-online.de wrote:
> >> Maybe this question was already answered multiple times ;) but why
don't
> >> use use the
> >> GIMPs data model (i.e. link to gimp-devel) directly (perhaps with a C++
> >> / Qt level
> >> binding), build a custom GUI around it (or let others participate in
it)
> >> and implement
> >> your desired graphics effects as GIMP plugins?
> >
> > I think that we need a 100% XML native data format if we are going to
> > integrate this with
> > the other applications in KOffice.
>
> Not quite sure about this. I think you may able to store document parts as
> separate documents in the archive. Nobody says that this document part may
> be pure XML. If you insert an image (PNG or JPEG file), it is rarely XML
> at all.
> OTOH there exists no dedicated image editing part, yet, so maybe this is a
> special case which is handled by the container application, like KWord.
>
> Regards
> Dirk
>
> _______________________________________________
> koffice-devel mailing list
> koffice-devel@mail.kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic