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 » U++ Library : Other (not classified elsewhere) » Help - I'm trying to draw an array of images
Help - I'm trying to draw an array of images [message #19651] Sun, 28 December 2008 23:33 Go to next message
klrkt is currently offline  klrkt
Messages: 20
Registered: December 2008
Promising Member
I would have thought this would work
w.DrawImage(x, y,img,sz);

and indeed it does

The problem is that only the top left hand corner of the img is displayed.

I have modified your ImageViewer example, to scale the images, however I cannot figure out how to have DrawImage use ImageEncoder or ImageCtrl.

Can you please post an example
- perhaps you could modify ImageViewer to display 2 or more jpg files, as an array?

ALSO - BUG REPORT:
The following code will hang
void MAIN::Paint(Draw& w){
PromptOK("Message");
}

Re: Help - I'm trying to draw an array of images [message #19663 is a reply to message #19651] Thu, 01 January 2009 15:41 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
klrkt wrote on Sun, 28 December 2008 17:33

I would have thought this would work
w.DrawImage(x, y,img,sz);

and indeed it does

The problem is that only the top left hand corner of the img is displayed.



Hard to comment without seeing the code. A testcase please.

Quote:


ALSO - BUG REPORT:
The following code will hang
void MAIN::Paint(Draw& w){
PromptOK("Message");
}



Yep, not a bug. This is expexted behviour. If you need to debug Paint, use LOG(s).

Mirek
Previous Topic: "All shared" in Windows question
Next Topic: Prompt* and file names
Goto Forum:
  


Current Time: Fri Mar 29 03:16:10 CET 2024

Total time taken to generate the page: 0.01395 seconds