Solved

Convert RGB byte arry

Posted on 2011-09-21
1
407 Views
Last Modified: 2013-11-13
Hi
I am looking to convert an RGB BYTE array to HBITMP what is the best way of doing this.
If there is also an option in OpenCV to do the same thing that also will be great
Thanks
0
Comment
Question by:nchannon
1 Comment
 
LVL 16

Accepted Solution

by:
HooKooDooKu earned 500 total points
ID: 36577282
You basically need to build a Bitmap object.  If you're not familer with bitmap internals, start with the overview.
http://msdn.microsoft.com/en-us/library/dd183377(v=VS.85).aspx.

To be able to set the pixels of the bitmap directly, you'll want to use the API function CreateDIBSection.
http://msdn.microsoft.com/en-us/library/dd183494(v=VS.85).aspx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now