[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: Finishing a paint action.
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2003-10-08 18:51:36
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Passing lightly over the issue of debug commands -- one thing at a time -- is
this right way of painting? I mean, is it necessary to first 'anchor', then
'invalidate', then 'updateCanvas' to have the change show up on screen?
KisImageSP img = m_view -> currentImg();
if (img) {
KisPaintDeviceSP device = img -> activeDevice();
if (device) {
KisPainter *p = new KisPainter();
p->begin(device);
p->fillRect( x, y, 10, 10, KoColor(QColor( "red" )) );
p->end();
device->anchor();
}
}
img -> invalidate(QRect( x, y, 10, 10 ));
m_view -> updateCanvas(x, y, 10, 10);
(By the way, in the funny bugs department, and just for the record: if I run
krita remotely, on my AMD box, export the display to my Powerbook, then the
image will show up as black, and I get xshm errors on the output. I hope to
compile Krita on the powerbook some time soon to check for endianness, but I
don't think this is an endiannes problem.)
--
Boudewijn Rempt | http://www.valdyas.org/index2.html
[Attachment #5 (application/pgp-signature)]
_______________________________________________
kimageshop mailing list
kimageshop@mail.kde.org
http://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic