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

List:       kde-imaging
Subject:    Fwd: Re: [Kde-imaging] Manipulating image data from within a KIPI
From:       aurelien.gateau () free ! fr (Aurelien Gateau)
Date:       2004-05-20 23:39:08
Message-ID: 200405202337.41017.aurelien.gateau () free ! fr
[Download RAW message or body]

>
> OK, I think I'm almost there now ;-)
> I could as easy as scratching my back return a QImage from say KimDaBa, but
> where should this image be displayed? Would a call to this QImage method
> indicate to the host application that it should display the image in a
> viewer?


No, image() returns a reference to the image data loaded by the host app. The 
plugin uses this reference to modify the image (the reference is not const). 
Once the plugin has modified the image, it will notify the host app by 
calling setImageDirty(). The host app implementation of setImageDirty() 
should refresh the image view and consider it as modified, so that it can 
warn the user of unsaved changes if he quits.

Aur?lien
[prev in list] [next in list] [prev in thread] [next in thread] 

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