--===============2052558847== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_SFkh/lsmbM00mX4"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --Boundary-02=_SFkh/lsmbM00mX4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Friday 10 October 2003 00:02, Patrick Julien wrote: > > With code that does to a QImage what the image-magick based builder doe= s; > > create the necessary KisPaintDevice and blit that to the image; that > > would > > That would be even slower. If you want speed, you need to use the tiles > directly. You can actually support undo/redo with what you have here > too... you just need to set the COW flags of the tiles before using them. > I've been looking at descriptions of how the Gimp works when painting, and = it=20 appears that they create a new image for every 'dab' -- every brush action = =2D-=20 do the brush stuff and then composite the image onto the current layer: http://www.levien.com/gimp/brush-arch.html. So what I'm doing here seems to= be=20 actually pretty close. I want to tackle undo/redo today -- first I'll try looking at how bitblt ca= lls=20 tilebitblt, but if that fails I'll go for the code from buildimage anyway.= =20 Or, if I get bored, I'll add line shapes, sizes and colors. Or perhaps=20 implement the rest of the QPainter primitives. Or add icons for the tools.= =20 Or... :-) =2D-=20 Boudewijn Rempt | http://www.valdyas.org/index2.html --Boundary-02=_SFkh/lsmbM00mX4 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQA/hkFSdaCcgCmN5d8RAjnMAKDy0xFTVzs8Qo9gadIhJ/o3gEx7wwCg0iCW i8axrM0fOnPxfH9l00Dsusc= =1WUI -----END PGP SIGNATURE----- --Boundary-02=_SFkh/lsmbM00mX4-- --===============2052558847== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@mail.kde.org http://mail.kde.org/mailman/listinfo/kimageshop --===============2052558847==--