473,327 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Help with bitmap DIB

Hi

I use this function to retrieve a pointer to a DIB (device-independent
bitmap) in memory

pGetFrameObj = AVIStreamGetFrameOpen(pAVIStream, bih) 'force function to
return 24bit DIBS

it returns a pointer

But how can I use this in order to populate a Image control , or save in BMP
format

thanks
Aug 26 '06 #1
1 1325
sorry, wrong function

pDIB = AVIStreamGetFrame(pGetFrameObj, frameNum) 'returns "packed DIB"

this is a pointer to a packed DIB


"Joao Tomas" <xx@xx.comwrote in message
news:ec**********@news.datemas.de...
Hi

I use this function to retrieve a pointer to a DIB (device-independent
bitmap) in memory

pGetFrameObj = AVIStreamGetFrameOpen(pAVIStream, bih) 'force function to
return 24bit DIBS

it returns a pointer

But how can I use this in order to populate a Image control , or save in
BMP format

thanks

Aug 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jim Langston | last post by:
I understand the rule of three, that if I have a custom constructor, copy or destructor I probably need the other 2. My class object definately has a custom constructor and destructor, but I'm...
9
by: Steve Long | last post by:
Hello, (total GDI newbie) I'm having trouble drawing just a simple line to display in a picturebox. I just want a straight, dotdash line. I have two methods, one works and one doesn't (it cause...
2
by: MyNameIsnt | last post by:
Can anyone tell me why, when I click on the buttons it register 2 characters on the display? if you use the right mousebutton it works ok, but the buttons dont flash?? it works fine without the...
0
by: Nick Jacobson | last post by:
Please help! The following code is used to draw a bitmap on a form with a color key (i.e. a color that's not drawn). For speed purposes, I'm trying to call the Win32 API function:...
2
by: Geky | last post by:
If I load a Bitmap from a file and I have Cbitmap and HBITMAP how is possible to use GetBitmapBits and SetBitmapBits to modify the image inside the memory? BITMAP m_Bitmap; // Struct to hold...
6
by: **Developer** | last post by:
usually I'd do: Drawing.Image.FromFile( I noticed I once did without thinking: Drawing.Bitmap.FromFile( I assumed this worked because Bitmap inherits from Image, but for fun I thought I'd...
2
by: juvi | last post by:
Dim myGraphics As System.Drawing.Graphics Dim buffer As Bitmap Dim fr_bm As Bitmap Dim to_bm As Bitmap Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)...
27
by: JoeC | last post by:
I am still working on my game and my program is getting better. Most of what I want to works. I think I am having trouble with copy constructor. Basically I want it to copy the gdata array. My...
1
by: xqggz | last post by:
HI everyone, Now I have only the information of the BITMAP , but not an actual bitmap. I want to draw the bitmap according the BITMAP struction information, what can I do? I use the VC2005 Express...
5
by: almurph | last post by:
RE: Tryign to convert Graphics object to a bitmap Hi, Hope you can help me with this. I have to open a file and add some text to it and then display it. So I create an Image object then...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.