Bitmap Reading -
How would you read any bitmap file pixel by pixel, and then replace every pixel by # or a character, and read the value of each pixel (rgb)...
Like say I have joe.bmp
I'd (This isn't VB but I'm just showing what I'm planning)
Do Loop Until EOF
Read pixel
Store RGB
Replace pixel with # in a string
Do something with RGB HERE
Put return key vbcrlf at the end of each line of pixels (Ie. if image is 200X300, after 200 characters, put vbcrlf)
End loop
Plz this is kind of urgent, thank you! I know this involves APIs but I don't know which ones or how?
Bitmap help plzzz... getting bitmap bytes -
I have a handle to a bitmap in memory, first of all I want to know if it's possible to find out the number of bytes in the bitmap. Second, how can I read all the bitmap bytes? I want to copy the bitmap bytes to a byte array
How to create a bitmap -
Hi.
I am reading in bytes of information from my parallel port.
Now, I want to take those bytes and save them as a readable bitmap.
Any ideas.
Converting ole image to a bitmap -
I have a dbase table full of OLE objects which I am displaying using the OLE bitmap control. Can I save what is displayed in the bitmap control to an actual bitmap file? If not is there anyway to convert an OLE picture object to a bitmap?
[2005] Variable Bitmap Size(GDI+) -
Hey guys, I'm having a small problem here.
I'm making a class to paste a bitmap with text (generated from some string with GDI+) onto a bigger bitmap. Now when I insert the contents of the string into the bitmap using GDI+, I don't know how wide and high the bitmap is going to be, s
Opening/reading a bitmap file into memory -
HeHi there. I want to read a bitmap file and play aroud with its pixels. I don't want to load it into a picturebox or image control. HAs anyone opened a bitmap file and directly processed it's pixels without loading it into a picture or image control....
Thanks,
allan
reading bitmap pixel by pixel -
I want to ask how i can read a bitmap file with pixel by pixel.
And using these data how can i create histogram.
all code must be with console application
thans for your help
unsigned char* to HBITMAP -
Alright, I can load up any bitmap file into a unsigned char array. I am not to sure but since each index in the array is 32-bit I assume that the function can load any bitmap...reading the data afterwards is the different part (555, 565, etc).
What I am having a problem understan
Saving a 24-bit bitmap as a 256 color bitmap -
I can't find a way to do this ANYWHERE! No API code or anything, no controls, no nothing! I want to save a 256-color bitmap from a 24-bit bitmap. I've deduced that this will require some dithering of some sort most likely...any hlep appreciated! Thank you guys for all your help in the
How to copy a part of one bitmap to another -
I would like to know the easiest way of copying a section(or the whole) of a bitmap to a coordinate on another bitmap?
It does not have to have the best performance.
And I would also like to know the fastest way to copy from one bitmap to another.
Any ideas?
Converting 24 to 8 bit bitmap -
Any ideas on the best way to go about loading a 24-bit bitmap into memory, converting to an 8-bit bitmap, and saving to a file?
The 24 bit bitmap will be huge - up to 100MB.
Thanks.
writing a bitmap into a bmp file -
Hello,
i have the handle of a bitmap, and i want to get a bmp file.
Any idea?
The bitmap is a bitmap of one button of another program, not mine.
Thanks.
Bitmap in hMemDC -
Bitmap in hMemDC
Hello again everyone,
I have the following situation and am wondering if any of you clever people would be able to help me resolve it (I know CornedBee has been very helpful in the past).
I have managed to place a bitmap within a hMemDC, only I would like to
Converting a 256 color bitmap to a 24bit color bitmap in VB.NET -
Apparently you can't create a graphics object from a 256 color bitmap ("A Graphics object cannot be created from an image that has an indexed pixel format.") so my question is: how do I convert a 256 color bitmap to a 24bit color bitmap in VB.NET?
The bitmap must be in 25
how do i load a bitmap -
I need to load a bitmap that is being generated by another app (DPlotJr) via a dll (not sure if that's the correct way to express how it works but its the best i can do),
the plot command returns a "Handle to a device-dependent bitmap." and i want to load that bitmap into
Reading an image file -
You don't have to; use the Picturebox control. Load your bitmap into it and use either the internal Pset and Point functions, or the faster GetPixel and SetPixelV API functions. Converting to grayscale is also easy. Some say that you can just add the red, green, and blue channels but i
Animating a bitmap over another bitmap -
I have a bitmap, 5 frames and it works, It moves in a pictureBox. It is not transparent, (I dont mind the background color around the bitmap right now). I want to animate this over another BG, basically a level, and have the user move it left/right.. jump duck.. etc. I can't find any g
Getting Bitmap Dimensions on Load -
I'm having trouble finding an easy way to get bitmap dimensions when you load a bitmap file into your program, for the purpose of resizing a rectangle to the loaded bitmap resolution.
[2005] Resize Drawing.Bitmap on runtime -
Hello,
I have a certain algorithm which fills a Drawing.Bitmap according to a file on the computer. This bitmap is set as the background image of a picturebox. The user can select a different file, at which point I need to update the contents of the bitmap.
This is quite easy (do
Create a color bitmap -
Hello,
I need some help in creating a color bitmap (say 24x24). All I want is a 24x24 bitmap that is red (i.e., a bitmap that is a red square). I do not know how to do this and I was wondering if someone could provide me with some code examples.
Thank you in advance.
~anthon
BITMAP from hex value -
hi,
i have the hex value of an bitmap, can anyone help me as to how to create a new bitmap out of this hex value.
the hex value for an image is as follows :
424D8E010000000000003E00000028000000480000001C000000010001000000000050010000C40E0000C40E000000000000 0000000000000000FF
Reading a BITMAP from file -
i have started the creation of my own file format. it has a header to locate the different images within the file. i just don't know how to display hte bitmaps from the file since theres multiple bitmaps. i can read the bitmap data into my byte array but dont know how to display it. an
Convert a 24-bit Bitmap to 8-bit -
Does anyone have code for loading a 24-bit bitmap from file and then converting it into an 8-bit bitmap? Also, how is this done to best minimize color loss?
Thanks
question using makergnfrom bitmap -
hey all when making region from a bitmap they use a binary file the bitmap is on the form how do i do that?
i fugured it out
thanks
Converting RGB Bitmap -
How can I convert RGB Bitmaps to 256 color Mode Bitmap?
...And
Is it possible to change bitmap size without loading them to a picturebox??
Create Bitmap from Byte Array -
Hi
I would like to create an 8-bit bitmap.
I have a byte array containing my pixel data, and I know the dimensions of the bitmap.
It could be a very big bitmap, so I ideally I don't want to have to use any PictureBox controls. It doesn't even need to be displayed on the screen:
I'm Lazy... -
I am loading a large amount of data from a bitmap. The question is this... Is it faster to:
A) Load the bitmap into memory using normal API calls, and getting each pixel using GetPixel()
or...
B) Preprocess the Bitmap (i only need the red component), and use fread()?
There are 1
replace color in bitmap -
Okay, let's say I have a GDI+ Bitmap object. It contains a nice little bitmap picture inside. How can I replace a certain color in the bitmap with another of my choice... let's say for example replace all white with SystemColors.Desktop or something.
How can I do that?
Thanks
RGB Array -> 8-bit Bitmap -
I need to create one large bitmap from a number of smaller bitmaps.
I have taken a number of separate 24-bit bitmaps and pieced the RGB values together as required into one big byte array. Using this array to create one big 24-bit bitmap is not a problem.
But, can I take the arr
Saving Bitmap to File -
Hi! I have a procedure that creates a Bitmap from a DIB, then I need to save that bitmap to a file. I tried Bitmap.save() but it won't just work!!!! Anyone can help me with this, I followed example on other website and it just won't work. I need to save it to a file with the same image
Create Bitmap in Code -
I am pretty experienced in VB, but I have no idea how to do any of these 3 things which I now need to do:
1. Create a bitmap image completely in code
2. Modify an existing bitmap
3. Convert a Bitmap into a GIF image
Any help with any of these 3 questions would be greatly ap
GetObject -
OK, I know this is a bit of a dumb question but it's probably quicker for you lot to tell me than to find out for myself by experiment.
If I use GetObject with a BITMAP type lpObject and a bitmap hObject then will the bmBits part of lpobject be a pointer to the bits of the bitmap.
Bitmap transparency -
How do you make parts of a bitmap transparent?
I currently have a routine to "mask" a bitmap by masking its picture box over a picture box with a black background. This works great if your bitmap has a black background. Although, in some cases you can still see a "gr
Convert bitmap to byte... -
I have managed to put together some code (with help from other coders) that will capture my desktop into a bitmap variable, however now I need to convert this into a byte variable so that I can then insert into my image field within SQL server db.
Is anyone able to help me, I have s
setdibitstodevice -
for some one who have worked with setdibitstodevice api function !
i have used a getdibits function to store a bitmap into an array .
after doing some processing on the array , i am using setdibitstodevice to get the resultant bitmap ( a small part from top left corner ) . but
Bitmaps into arrays -
Argh! It always comes to this when I'm working with images. Usually, when I need to programatically interpret data in a bitmap, I do it graphically, using GetPixel in a PictureBox. But that's slow and inefficient.
How can I load each pixel of a bitmap into a 2-dimensional array? Say t
windows function to open a 24bits bitmap -
The SavePicture saves a picture box as a 24 b/pix bitmap;
How would I make it a monochrome bitmap ?
Do I have to save file as 24 b/pix with the above functionsthen open it to save it again as a monochrome bitmap ?
if yes how?
Is there a direct function allowing us to save the
[2008] Saving a bitmap to the computer, then resize it. -
Over a one hour period, my program will create 3600 images...
which is alot of images, I am thinking I will reduce it, but more to the point...
If I am recording my desktop, it is roughly 130-205KB per photo
If I play Age Of Empires III, it is roughly 1MB per photo (which is rea
Starting to think that GDI+ won't work right in unmanaged C++ -
I can't even construct a new Bitmap class. I can if it is not new.
Bitmap b(L"filepath"); //this works.
Bitmap* b=new Bitmap(L"filepath"); //this doesn't.
Any thoughts on this?
Inverting bitmap -
Which method allows me to invert a bitmap object?
(Well, actually it will be sufficient to specify background color in bitmap constructor, if it is possible...)
[2005] Bitmap Transparency -
Does anyone know how to make a certain color of a bitmap, transparent? Such as the Dark Green parts.
Something like the Transparency Key for the Form, only, with a bitmap. Thanks for any help.