Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello, all:

I'm using an external API to get image file. the API return double pointer:

C#
int     DimX,      // x dimension of data
int     DimY,      // y dimension of data
double  *dData,    // data


How should I start to get an image from these information? please get me some hint or suggestion. Thanks!
Posted
Updated 23-Dec-14 22:31pm
v2
Comments
Richard MacCutchan 24-Dec-14 4:38am    
You cannot expect people to guess what the API returns, or indeed what API you are talking about. Please provide some proper information about whose code you are using.

1 solution

Without some idea of what is returned? Not a lot of chance really.
We don't know what API you are using, what it returns, or indeed anything about it.
Remember that we can't see your screen, access your HDD, or read your mind.

I'd suggest that you need to start looking at the API documentation and work it out from there, or contact the manufacturers technical support and ask them. But we probably can't help much at all.
 
Share this answer
 
Comments
Member 9857514 24-Dec-14 4:34am    
I've updated my post. actually, I don't have much information about the API either. that's so far I can get. that's why I wounder if some experienced people may have some clue..
OriginalGriff 24-Dec-14 4:53am    
Seriously, you need to find the info - we have no idea what the API is so we would have to guess as to the data format returned: the info you show gives us teh X and Y dimensions, but is that in pixels? Bytes? Words? And if it's pixels, how many bpp are there? Is there an Alpha channel? Is the data in Y rows of X columns (as bitmaps are)? Is there any "packing data" at the end of a row? Is there any palette info?

They only way to find this is to locate the manufacturers, and start looking at the API documentation - sorry!
CPallini 24-Dec-14 5:30am    
You could at least provide the name of the API function.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900