Saving and loading annotations using Krita files

Boudewijn Rempt boud at valdyas.org
Wed Sep 26 13:40:02 UTC 2012


On Wednesday 26 September 2012 Sep, Francisco Fernandes wrote:
> Hello everyone,
> 
> I want to save the generated particles in the sandbrush in a Krita file. In
> a new document,
> the annotations work just fine: you add grains (implying in their
> serialization after each stroke)
> and them you spread them (which happens after loading their properties from
> the annotations in
> the image).
> 
> However, when I save the current image, close Krita, and open the file, the
> grains annotations are lost.
> How can I save them in a ".kra" file and load them properly?
> 
> 

Check the code in bool KisKraSaver::saveBinaryData. You'll see a comment about only saving exif; that's the place where you need to add your own code.

-- 
Boudewijn Rempt
http://www.valdyas.org, http://www.krita.org, http://www.boudewijnrempt.nl


More information about the kimageshop mailing list