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 » image viewer
Re: image viewer [message #3100 is a reply to message #3099] Sun, 07 May 2006 11:40 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
mjkoskin wrote on Sun, 07 May 2006 08:40

yes I've looked at them, but why the image is set as label?



Why are you unhappy with label? You wrote:
"I need to extract the data to Image and then display it (ImageDraw I think)."
Label is sufficient to "display it" Smile
And it has already Paint and ImageDraw inside. (You can study LabelBase.h/cpp in CtrlLib if you need examples. find w.DrawImage(ix, iy, limg, lcolor)Wink
So you don't have to program it. Even more you can add nice borders and/or text. e.g if image not found or loading was incorrect.

And also you can easily (I think) make scrollable image viewer
using ideas from:
http://www.arilect.com/upp/forum/index.php?t=msg&th=260& amp; amp; amp;start=0&
if you change buttons to labels.
Edit1: Or you can use the same buttons if you want to click on you image and open you image editor etc.
btn.SetImage(const Image& img);
Edit2: But if you need zooming, then you must use something from nImage.

[Updated on: Sun, 07 May 2006 12:03]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Encoding an image in base64
Next Topic: It can't dispay chinese characters properly
Goto Forum:
  


Current Time: Wed May 15 10:26:50 CEST 2024

Total time taken to generate the page: 0.02547 seconds