Thanks for your reply.
Above code is not working proberly. Actually this code was created through DLL. I checked with my exe but the image was not creating.
How I allocated the memory to char buffer.
Is there any option in c++ or vc++?...
User Profile
Collapse
-
memcpy problem
Hi,
I have problem with copy the bitmap* to char* using memcpy.
Here I given my code,
char* cbuffer;
int size = 240000;
Bitmap *bitmap = new Bitmap(L"Image. bmp");
bitmap->Rotate(RotateN oneFlipX);
memcpy(cbuffer, bitmap,size);
FILE *fptr;
fptr = fopen("image2.b mp","wb");
fwrite(cbuffer, 1,size,fptr);
fclose(fptr);... -
Image Storing Problem
Hi
I have problem with saving the Bitmap image. Here I given the my code,
[code=cpp]
void RotFlipImg::Fli pImgData(char* mydata,prUInt32 imgsize)
{
GdiplusStartupI nput gdiplusStartupI nput;
ULONG_PTR gdiplusToken;
GdiplusStartup( &gdiplusToke n, &gdiplusStartup Input, NULL);
FILE *fptr1;
fptr1=fopen("li veimage.bmp","w b");
fwrite(mydata,i mgsize,1,fptr1) ;... -
I have retrieved the image data from the camera device. Now I need to rotate that image data using gdi+. I have using following code for rotating the image.
void RotFlipImg::Fli pImgData(char* mydata,prUInt32 imgsize)
{
FILE *fptr1;
fptr1=fopen("li veimage.jpg","w b");
fwrite(mydata,i mgsize,1,fptr1) ;
fclose(fptr1);
...Leave a comment:
-
Thanks for your reply.
Actually I am new person to the vc++. So I could not write the code for taking the pixel one by one.
Can you have any simple example in c or c++ or vc++6.0? Please give....Leave a comment:
-
Rotate the image
Hi,
I have a Image data which retrieving from Camera device. Now that data has mirror position. Now I need to rotate that image data as usual position.
Anybody knows that please give an example or reference website.
Thank you -
Creating Thumbnail Image
Hi,
I have 1.12 Mb size Full size JPEG image. I need convert that image into thumbnail Image.
How can I convert the Full size image to Thumbnail image? -
Thanks for your reply.
I know that c++ is better performance comparing c#. But We checked image retrieving between c# application and vc++ which is very slow.
Actually still image has 1.12 MB size. The loop executing 1024 times when retrieing the image. Each time retrieve the image data 1024 bytes.
So how can I improve the performance in vc++?...Leave a comment:
-
Performance Issue between c#.net and vc++
Hi,
In our project we received the still image from camera device. I have using the vc++ wrapper dll to invoke the camera DLL.
When I retrieve the still image from vc++ which takes 26 seconds. But the same in c#.net takes 6 seconds.
Is there any performance issue between c#.net and vc++? -
----
Now I have changed my function as follows,
Default declaration:[code=cpp]
static ofstream out("capture.jp g", ios::out|ios::b inary);
void PowershotSdkDll ::Copy(prUInt8 *pDataBuffer, prUInt32 dataLength)
{
out.write((cons t char*)pDataBuff er, dataLength);
out.close();
}
[/code]
In Callback function:
[code=cpp]...Leave a comment:
-
passing the data one function to another function
Hi,
I am retrieving the image from DLL through vc++ dll. Actually Image is retrieving in Callback function of main function. When I writing that image file inside of the Callback function then no problem in retrieving. At the same I want to send the Imagedata to the another function and write the same which cause the error.
Here I given that code,
//Callback... -
Thanks for your reply.
I have solved that problem. Actually I didnt give the bitmap index. So that cause the problemLeave a comment:
-
Palette Color Not Changed
Hi,
I have writing the code for change the Palette color of the Bitmap. But I didn't get any different between given image and result image.
Here I given my code,
Bitmap *bmp=new Bitmap(L"skumar 3.bmp");
INT size = bmp->GetPaletteSize ();// bitmap->GetPaletteSize ();
printf("The size of the palette is %d bytes.\n", size);
ColorPalette* palette... -
---
Thanks for your reply.
Yes. You are right. I have solved that problem. But Now I have one more problem for setting the color pallete to the Bitmap Image.
Here I given the code for c#,
/// Get the palette
ColorPalette *pColorPalette = pBitmap->get_Palette( );
/// ...and initialise it here to the 8 bit...Leave a comment:
-
---
Thanks for your reply.
I have initialized p_bitmap as,
Gdiplus::Bitmap *pBitmap = Gdiplus::Bitmap ::FromFile(L"C: \\temp.bmp", TRUE);
When I traced out my Program using Printf statement I got the problematic line such as,
Gdiplus::Rect rect(0, 0, p_bitmap->GetWidth(), p_bitmap->GetHeight()) ;
So I have changed into,
UINT width = p_bitmap->GetWidth();...Leave a comment:
-
Gdi Plus Problem
Hi,
I have coding for the Wsq compression using Gdiplus(c++) concept. When I invoke the function from the java which returns "Access violation" errors has occur.
Here I given that code,
[code=cpp]
Gdiplus::Rect rect(0, 0, p_bitmap->GetWidth(), p_bitmap->GetHeight()) ;//Problem Occur line
Gdiplus::Bitmap Data lockedBitmapDat a;... -
-----------
I have solved that problem.
Thank you for your kind of Suggestion....Leave a comment:
-
----
I have changed my code as follows,
FRsdk::Eyes::Lo cation eyesLoc = eyesLocations.f ront();
FRsdk::SampleEv aluator eve;
FRsdk::SampleQu ality sampleQuality =eve.evaluate( img, eyesLoc);
Now I have not compilation error but Link errors are come,
Such as,
NewDll error LNK2019: unresolved external symbol "__declspec(dll import) public:...Leave a comment:
-
----
Thanks for your reply.
I have changed my code as,
int NewDemoDll::Eye Finder()
{
FRsdk::SampleQu ality()
{
}
}
But the same errors are occur,
error C2143: syntax error : missing ';' before '{'
error C2512: 'FRsdk::SampleQ uality::SampleQ uality' : no appropriate default constructor available
Please give your kind of suggestion....Leave a comment:
-
Thanks for your reply.
I am a new for vc++. So how I write a default constructor for the struct....Leave a comment:
No activity results to display
Show More
Leave a comment: