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 previous 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 880 times)
  • Attachment: PainterBug.7z
    (Size: 1.04KB, Downloaded 543 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Variable pitch fonts
Next Topic: Alpha in Color
Goto Forum:
  


Current Time: Thu Apr 18 07:31:18 CEST 2024

Total time taken to generate the page: 0.01248 seconds