13 Topics

Member Avatar for
Member Avatar for i8kmon

Hi guys, I'm having problems converting .bmp to .jpg using vb6. :icon_question:The idea is to convert .bmp to .jpg so i can import the saved image to a pdf file for email and/or printing. I downloaded code that's supposed to convert .bmp to .jpg, but I get a compiler error …

Member Avatar for Jose_9
0
2K
Member Avatar for apanimesh061

#include <stdio.h> #include <conio.h> #include <stdlib.h> #include <process.h> #include <string.h> #include <math.h> int count = 0; typedef struct bitmap24 { unsigned char header[54]; unsigned char* pixels; }BMP; void readBMP (char* filename) { int i; FILE* f = fopen(filename, "rb"); FILE* f1 = fopen("save.bmp", "wb"); FILE* pixelVals = fopen("vals.dat", "w"); unsigned …

Member Avatar for Adak
0
518
Member Avatar for ramy.merc

Hi programmers, I am a c# programmer but I have a very big project in C++ (Which I am not familiar with) and I am facing a big problem. As part of the project, I need to convert the image (any image of any type bmp,jpeg,png...etc) to grayscale using openMP. …

Member Avatar for Moschops
0
2K
Member Avatar for kalelovil

The code below should be extracting the pixel data from the mapProvinceFile bitmap specificed and placing it into a byte array, modifying some of that color data depending on the contents of a custom ArrayList, vertically flipping the image, and then displaying the resulting modified image in a new pane. …

Member Avatar for JamesCherrill
0
404
Member Avatar for SoftEngGroupE

I need to load a BMP into C++ and code a program to convert it into a JPEG. I have very little programming experience and am wondering what libraries should be used to efficiently convert an image in this way. Is there a library that will convert the BMP straight …

Member Avatar for palanethra.ag
0
617
Member Avatar for Basteon

So, I want to save an HBITMAP to different image file formats like BMP,PNG and JPEG. I believe that the most simple way to do it is by using GDI+. So here is what I came up with. [CODE]Gdiplus::Bitmap bmp(hbmpImage,(HPALETTE)0); CLSID pngClsid; GetEncoderClsid(L"image/png", &pngClsid); bmp.Save(L"D:\image.png",&pngClsid,NULL);[/CODE] The problem is that it …

Member Avatar for raptr_dflo
0
1K
Member Avatar for Labdabeta

I am having some major issues with OpenGL textures. I have the following code to load a glTexture (typedef ed as a GLuint): [CODE]glTexture LoadBMP(const char *fname) { HBITMAP hBMP; BITMAP BMP; glTexture texid; glGenTextures(1, &texid); hBMP=(HBITMAP)LoadImage(GetModuleHandle(NULL), fname, IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION | LR_LOADFROMFILE ); if (!hBMP) return NULL; GetObject(hBMP, …

Member Avatar for mike_2000_17
0
220
Member Avatar for jeevsmyd

Hi , I'm an amateur programmer from India. I use code::blocks for my c/c++ programming. I would like to create a simple 16color bitmap file reader in c++ . The hraphics library I use is winbgim . I'm a very beginner in graphics programming. I just know how to set …

Member Avatar for sundip
0
159
Member Avatar for ecklcakes

Need help with a program (console application in Lazarus) I need to load a bitmap (bmp) file in FPC and be able to directly edit the pixels (their colour). I then need to be able to save the bitmap again with the same name. Please put as many comments into …

0
90
Member Avatar for sebcbien

Hi, I've got some trouble opening files saved by The Gimp in BMP 16bits 565. I've test some various bmp they all work except those saved from The Gimp and I really don't know why the format might be different from the one found there:[URL="http://wvnvaxa.wvnet.edu/vmswww/bmp.html"]http://wvnvaxa.wvnet.edu/vmswww/bmp.html[/URL] Bleu.bmp and Mire.bmp are some …

Member Avatar for sebcbien
0
397
Member Avatar for ghprogrammingco

I should write a program to combine the huge number of images side-by-side. The source images are jpeg and png formats images. I think no any direct way to combine png or jpeg images to gather, unless first convert them to bmp, or any raw format, and perform combination and …

0
130
Member Avatar for srikanth48

Type BITMAPFILEHEADER bfType As Integer bfsize As Long bfReserved1 As Integer bfReserved2 As Integer bfoffbits As Long End Type Type BMPInfoHeader biSize As Long biwidth As Long biheight As Long biPlanes As Integer bibitcount As Integer biCompression As Long bisizeimage As Long biXPelsPerMeter As Long biYPelsPerMeter As Long biClrUsed As …

Member Avatar for vb5prgrmr
0
321
Member Avatar for MaskedPianist

Hi guys First post on this website, so go easy on me. I'm a fairly inexperienced programmer, mostly using snippets of other people's code and adapting it for my own uses, but I have found a problem. I want to change my desktop programatically, but to a picture on the …

Member Avatar for iamthwee
0
164

The End.