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 » Community » Coffee corner » Image04 picture viewer
Image04 picture viewer [message #24224] Wed, 06 January 2010 18:17 Go to next message
TRNG98 is currently offline  TRNG98
Messages: 5
Registered: January 2010
Location: Lund
Promising Member
I was wondering -- should it be possible to resize the
displayed image. Or is it of fixed size?
//
Re: Image04 picture viewer [message #24225 is a reply to message #24224] Wed, 06 January 2010 18:22 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 2922
Registered: August 2008
Veteran
TRNG98 wrote on Wed, 06 January 2010 18:17

I was wondering -- should it be possible to resize the
displayed image. Or is it of fixed size?
//

Hello TRNG98

Could you send more info about how are you displayed that image ?

Best regards
Koldo


Best regards
IƱaki
Re: Image04 picture viewer [message #24228 is a reply to message #24224] Wed, 06 January 2010 19:36 Go to previous messageGo to next message
TRNG98 is currently offline  TRNG98
Messages: 5
Registered: January 2010
Location: Lund
Promising Member
Hi!
The Image04 is the default-install "Set Main Package/tutorial ->"
I don't think it will resize the image. I have some problems will all the console test-apps. I'll guess that it is the vista that is having a play with default directories, etc. I have no idea if I have a good install.

Well, If I need some picture display function, and it should be possible to change size of the JPG display itself and I also need scroll bars, this fix itself easy, or do it need some code?

Rolling Eyes
Re: Image04 picture viewer [message #24230 is a reply to message #24225] Wed, 06 January 2010 19:39 Go to previous messageGo to next message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
Hi, I think that's what you want.
w.DrawImage(0, 0, Rescale(img, GetSize()));

put it instead of
w.DrawImage(0, 0, img);

(line 28, in Paint)

Andrei
Re: Image04 picture viewer [message #24231 is a reply to message #24228] Wed, 06 January 2010 19:45 Go to previous message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
TRNG98 wrote on Wed, 06 January 2010 20:36

Hi!
Well, If I need some picture display function, and it should be possible to change size of the JPG display itself and I also need scroll bars, this fix itself easy, or do it need some code?


To add scrollbars you have to use a control, not displaying your image in Paint. You will find RasterCtrl in Bazaar(Massimo wrote it).
Previous Topic: Newbie Corner
Next Topic: U++ state
Goto Forum:
  


Current Time: Tue Feb 19 10:16:21 CET 2019

Total time taken to generate the page: 0.00564 seconds