[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Convert RGB byte arry

Posted on 2011-09-21
1
Medium Priority
?
432 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
In this post we will learn different types of Android Layout and some basics of an Android App.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

829 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