Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Draw stuff [SOLVED]
Re: Draw stuff [message #13911 is a reply to message #13903] |
Fri, 01 February 2008 16:09   |
Indio
Messages: 8 Registered: January 2008 Location: Hungary
|
Promising Member |
|
|
James!
You're right about the title! Sry I can't rename it. If a moderator comes around, he can rename it e.g. "Iterative drawing problem". You will see why.
My program will segments images with energy minimization, if I ever finish it. The algorithm iterates, and it produces a 2D matrix (an image) in every iteration, and I want to draw this matrix onto the GUI and refresh it, if the matrix has changed.
But first of all I would like to put a simple image onto the GUI from the memory. If I can do this, I will try the advanced version mentioned above.
You're code has the same result as mine... Nothing appeared.
- The meaning of MyDraw was that I called it right after the image was loaded to the memory by the user. And if I don't call the Paint method on my object (here is the Splitter, named 'a') in MyDraw, how will it know where to paint exactly? My main window is divided by 3 Splitters. Or the w.DrawImage(x, y, image) draws simply on the main window? I've got no derived widgets.
- There's no problem with proba_image. It's not empty and it is a member of course. I wrote that this part of the code works. The problem comes up in painting.
- IsEmpty() is a good idea.
- I need **picture, becouse I modify the loaded image, and I that modifyed stuff has to be represented on the GUI.
- If I don't comment out Premultiply, the compiler complains that it is undeclared. I've got the 2007.1 version. I have been using it from November I guess.
I know that it is an easy problem, but I was shot. Any more idea? Thanks.
|
|
|
 |
|
Draw stuff [SOLVED]
By: Indio on Fri, 01 February 2008 05:21
|
 |
|
Re: Draw stuff
By: mrjt on Fri, 01 February 2008 11:19
|
 |
|
Re: Draw stuff
By: Indio on Fri, 01 February 2008 16:09
|
 |
|
Re: Draw stuff
By: mrjt on Fri, 01 February 2008 16:44
|
 |
|
Re: Draw stuff
By: Indio on Fri, 01 February 2008 21:38
|
 |
|
Re: Draw stuff
By: mirek on Fri, 01 February 2008 22:42
|
 |
|
Re: Draw stuff
By: Indio on Fri, 01 February 2008 23:41
|
 |
|
Re: Draw stuff
By: mrjt on Tue, 05 February 2008 11:03
|
 |
|
Re: Draw stuff
By: Indio on Tue, 05 February 2008 23:03
|
 |
|
Re: Draw stuff
By: Indio on Fri, 08 February 2008 16:02
|
 |
|
Re: Draw stuff
By: mrjt on Fri, 08 February 2008 17:00
|
 |
|
Re: Draw stuff
By: Indio on Fri, 08 February 2008 18:09
|
Goto Forum:
Current Time: Thu Aug 21 11:21:19 CEST 2025
Total time taken to generate the page: 0.04696 seconds
|