Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Painter.DrawImage bug
Painter.DrawImage bug [message #24492] Wed, 20 January 2010 14:07 Go to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

I used ChPaint to paint the image. It works ok when using it diretly in Paint method, but using it through the Painter rasterizer it gives different (wrong) results.

PS: It looks like Painter's DrawImage instead of drawing part of image (like in this line - we should see only a top left img's rectangle of size cx and cy)
w.DrawImage(0, 0, cx, cy, img, RectC(0, 0, cx, cy));

it scales down the whole image to a cx and cy size.

Here's the screenshot and the test case:
index.php?t=getfile&id=2145&private=0
  • Attachment: painter.png
    (Size: 3.83KB, Downloaded 877 times)
  • Attachment: PainterBug.7z
    (Size: 1.04KB, Downloaded 541 times)
Re: Painter.DrawImage bug [message #24494 is a reply to message #24492] Wed, 20 January 2010 15:09 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Sorry Uno

What is ChPaint for ?

Best regards
Koldo


Best regards
Iñaki
Re: Painter.DrawImage bug [message #24495 is a reply to message #24494] Wed, 20 January 2010 16:47 Go to previous messageGo to next message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
koldo wrote on Wed, 20 January 2010 16:09

Sorry Uno

What is ChPaint for ?

Best regards
Koldo

Chameleon Paint? Rolling Eyes
Re: Painter.DrawImage bug [message #24496 is a reply to message #24495] Wed, 20 January 2010 16:50 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
andrei_natanael wrote on Wed, 20 January 2010 16:47

koldo wrote on Wed, 20 January 2010 16:09

Sorry Uno

What is ChPaint for ?

Best regards
Koldo

Chameleon Paint? Rolling Eyes

Ah! Smile

Up to now Painter DrawImage has worked for me well, but without using Chameleon.

Best regards
Koldo


Best regards
Iñaki
Re: Painter.DrawImage bug [message #24573 is a reply to message #24492] Sun, 24 January 2010 22:27 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
unodgs wrote on Wed, 20 January 2010 08:07

I used ChPaint to paint the image. It works ok when using it diretly in Paint method, but using it through the Painter rasterizer it gives different (wrong) results.

PS: It looks like Painter's DrawImage instead of drawing part of image (like in this line - we should see only a top left img's rectangle of size cx and cy)
w.DrawImage(0, 0, cx, cy, img, RectC(0, 0, cx, cy));

it scales down the whole image to a cx and cy size.




Ah, stupid leftovers... Looks I will have to develop the correct clipping there...

Mirek
Re: Painter.DrawImage bug [message #24622 is a reply to message #24573] Mon, 25 January 2010 20:21 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Implemented. Both Images now look identical.
Re: Painter.DrawImage bug [message #24630 is a reply to message #24622] Mon, 25 January 2010 23:34 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

luzr wrote on Mon, 25 January 2010 14:21

Implemented. Both Images now look identical.

Yes, they do Smile Thanks!
Previous Topic: Variable pitch fonts
Next Topic: Alpha in Color
Goto Forum:
  


Current Time: Thu Mar 28 20:45:26 CET 2024

Total time taken to generate the page: 0.03137 seconds