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 » Newbie corner » Displaying raw image data
Re: Displaying raw image data [message #39783 is a reply to message #39778] Fri, 26 April 2013 13:31 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1792
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

keltor wrote on Fri, 26 April 2013 08:37

Image expects a RGBA*, while I have an unsigned char*. Force-casting does not work (naturally), the image just displays some garbage.
Casting should work, I do it quite often Smile The only restriction that your library must return data in same order as they are sorted in RGBA, that is {B,G,R,A} if I remember it correctly. Otherwise the color channels would be switched, which might result in garbled data as you describe.

Anyway, I'm glad to hear you found a working solution Wink

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: compiling with MSC 10
Next Topic: ScatterCtrl / ScatterDraw - ShowLegend() problem and general Question
Goto Forum:
  


Current Time: Sun Aug 24 20:22:40 CEST 2025

Total time taken to generate the page: 0.04895 seconds