bmp

C++: What's the simplest way to read and write BMP files using C++ on Windows?

I would like to load a BMP file, do some operations on it in memory, and output a new BMP file using C++ on Windows (Win32 native). I am aware of ImageMagick and it's C++ binding Magick++, but I think it's an overkill for this project since I am currently not interested in other file formats or platforms. What would be the simplest way ...

How to draw 32-bit alpha channel bitmaps?

I need to create a custom control to display bmp images with alpha channel. The background can be painted in different colors and the images have shadows so I need to truly "paint" the alpha channel. Does anybody know how to do it? I also want if possible to create a mask using the alpha channel information to know whether the mouse ha...

Draw graphs in VBscript

I have a HTML application, partially HTML, partially VBscript, disguised as a form. What it does is it opens a few local files, runs a DOS box containing GAWK and presents a text file as its result. I wish to expand upon it by letting it create a bitmap image with the results in a stacked bar graph, for instance as a .BMP file. But I'm s...

How to access each byte in a bitmap image

Hi, Say I have a bitmap image, is it possible to iterate through all the individual bytes in the image? If yes, how? ...

bmp loader library

I'm looking for a C library to load .BMP image-files. I've found a lot of code on the net, but everything I've seen so far is useless for me. Either the code seems to be in a good shape but it only supports just or two of the possible sub-formats, or the code supports all major sub-formats but does not error-checking and handling at al...

How do I view 'raw' PNG image data ...

I'm trying to write an application that converts 48 bit-per-pixel PNG files to a proprietary (Bayer) format. The code (courtesy here) below works great for some PNG file formats, but when I try a bona fide 48 bit PNG the code throws an exception - is there an alternative? static public byte[] BitmapDataFromBitmap(Bitmap objBitmap...

Migrating EJB2.x BMP entity beans

We use EJB2.x entity beans with BMP (bean managed persistence). It appears BMP is not supported in EJB3. We had wanted to stay current and upgrade to EJB3. Does anyone know if there are in fact any BMP options available in 3.0? From what I can tell, using 3.0, all entity beans have to use JPA and by definition ORM. There are some op...

How to create a .bmp in WinCE

I have a camera that returns raw images that can easily be converted to a bitmap that can be saved to a file by the following C# method (that I did not write). From various sources, I have determined that the pictures have 8 bits per pixel, and may or may not be grayscale. private void rawImgToBmp(byte[] imgData, String fname) { ...

C#: How to convert BITMAP byte array to JPEG format?

How can I convert a BITMAP in byte array format to JPEG format using .net 2.0? ...

Display BMP in JLabel

Java can display png, jpg a some other picture formats, but i have to display a bmp file in a JLable by getting the file path. ImageIcon imageIcon = new ImageIcon(imageFile.getAbsolutePath()); ImageIcon support the typical png,gif,jpg images. In the project i am working, i can not open a bmp file and store the same file as a jpg, bec...

Writing BMP data getting garbage

I'm working on understanding and drawing my own DLL for PDF417 (2d barcodes). Anyhow, the actual drawing of the file is perfect, and in correct boundaries of 32 bits (as monochrome result). At the time of writing the data, the following is a memory dump as copied from C++ Visual Studio memory dump of the pointer to the bmp buffer. Eac...

Comparison of bmp files?

I want to compare two bmp files. I thought of two approaches: to compare the header as well as the information header of the two files convert the bmp file to binary and then do the above comparison But, I don't know how to start and which will be a better approach. I would be glad if someone could please help me! ...

Realtime BMP to JPG conversion in Delphi 7 using Paradox

Researching here and at Code News Fast, I've seen nothing on point to my problem. I have an app where a customer picture (a JvDBImage) is acquired through the clipboard from a third-party picture-taking program when the user clicks a button in my app to load it. (PhotoImage.PasteFromClipboard). That loads and saves the image as a bitmap ...

Reading bytes from bmp file

How do I read the bytes from a bmp file using C? ...

png to bmp

is there anyway that i can convert a png to a bmp in c# i want to download a image then convert it to a bmp then set it as the desktop background i have the downloading bit and the background bit done i just need to convert the png to a bmp ...

Need help on BMP to JPEG conversion

I'm writing a C++ program to convert a BMP image into a JPEG. Here's the basic algorithm I'm trying to follow: Convert RGB color space to Y,Cb,Cr.. Down sample Cb and Cr by 2 (that means for each square block of 2*2 there is 4 different Y value but 1 Cb and 1 Cr value Apply DCT to data units of each 8*8 pixels... Then apply quantizati...

How to create a BMP file from raw byte[] in Java

I have a C++ application which communicates with a camera and fetches raw image-data. I then have a Byte[] in C++, which i want to send to Java with JNI. However, i need to convert the raw Byte[] to an real file format(.bmp was my first choice). I can easily do this if i write it from C++ to an file on the hard-drive, using BITMAPFILEI...

paper on var bmp

where can I find a paper that explains var bmp for beginners, please? ...

How to Create a Bitmap Programmatically?

I'd like to create programmatically a random X height and Y width bitmap file. The content, for me, is irrelevant. It could be all white, empty. What is important is the dimension. How to do it using Windows API? ...

PHP GD2, Convert resource image to 24-bit BMP

Hi. I need to convert resource image to 24-bit BMP image with GD2. This code creates 32-bit BMP image, but I need 24-bit. Help please. function imagebmp(&$im) { if (!$im) return null; $w = imagesx($im); $h = imagesy($im); $result = ''; if (!imageistruecolor($im)) { $tmp = imagecreatetruecolor($w, $h);...