Solved

Convert RGB byte arry

Posted on 2011-09-21
1
403 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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

14 Experts available now in Live!

Get 1:1 Help Now