Specifically I have this piece of code..
numBands = 3;
Height = 240;
Width = 384;
depth = 8;
BITMAPINFO bitMap;
MbufAllocColor(MilSystem,numBands,Width,Height,depth +
M_UNSIGNED,M_IMAGE+ M_GRAB + M_DIB ,&MilColorImage);
MdigGrab(MilDigId, MilColorImage);
MbufInquire(MilColorImage,M_WINDOW_DIB_HEADER,&bitMap);
But I am never getting any data in the bitMap structure.
1. Is this the correct way to do the intended?
2. If yes, what might be going wrong? ( I have also tried changing the
milsetup.h but it did not work).
Bob
"New developer" <soma...@hotmail.com> a écrit dans le message de news:
fc8c74ea.03043...@posting.google.com...
void main(void)
{
MIL_ID MilApplication, MilSystem, M_NULL, MilDigitizer, MilImage;
BITMAPINFO bitMap;
MappAllocDefault(M_SETUP, &MilApplication, &MilSystem, &MilDisplay,
&MilDigitizer, M_NULL);
MbufAllocColor(MilSystem, 3, 640, 480, 8+M_UNSIGNED,
M_GRAB+M_DISP+M_IMAGE+ M_DIB, &MilImage);
MdigGrab(MilDigitizer, MilImage);
MbufInquire(MilImage, M_WINDOW_DIB_HEADER, &bitMap);
printf("%d.\n", bitMap);
printf("Press <Enter> to end.\n");
getchar();
MappFreeDefault(MilApplication, MilSystem, M_NULL, MilDigitizer,
MilImage);
}
Also, please note that Matrox Imaging does host a Developers' Forum
specifically for questions and issues related to Matrox Imaging
products.
http://www.matrox.com/imaging/support/dev_forum/home.cfm
Technical Marketing,
Matrox Imaging
soma...@hotmail.com (New developer) wrote in message news:<fc8c74ea.03043...@posting.google.com>...