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 #3107 is a reply to message #3106] Sun, 07 May 2006 15: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 14:14

thanks,

1. Though the sliders are both horizontal Sad

2. The image read by opencv consists of array of chars, B G R B G R ... and aligned with 4 byte boundaries. It's bit tricky to get the value: img->imageData[x+y*img->widthStep] returns the pixel (one color) at (x,y). So a routine to set a pixel in Image is needed.

thanks
-matti



1. which u++ version have you got? Vertical slider was introduced not long ago. I think, then you just need to make height>width

2. You can read my "U++ spying" lessons
http://www.arilect.com/upp/forum/index.php?t=msg&goto=29 91&&srch=spying#msg_2991
and then spy U++ for "SetPixel"... (actually in the Draw package).
 
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 08 21:26:29 CEST 2024

Total time taken to generate the page: 0.02281 seconds