Solved

Convert RGB byte arry

Posted on 2011-09-21
1
412 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Beginner to Unreal Engine 4 5 80
Regular Expression Calculator Tester 2 75
VbScript to countdown to New Year's Day 6 57
T-SQL:  Sigh---Boy, this is fun.... 12 48
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

825 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