Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am creating an image Thumbnail Image for my tooltip control as background image using Drawing GetThumbnailImage.Also i have included multiple .h files related to my file.

What I have tried:

I have tried
C++
public:
	Image^ GetThumbnailImage(
	int thumbWidth,
	int thumbHeight,
	Image::GetThumbnailImageAbort^ callback,
	IntPtr callbackData);

Image::GetThumbnailImageAbort^ callback =  gcnew Image::GetThumbnailImageAbort(ThumbnailCallback);
Bitmap^ myBitmap = gcnew Bitmap("image.jpg");
System::Drawing::Image^ pThumbnail =
 myBitmap->GetThumbnailImage(50,50,callback,IntPtr::Zero);
e->Graphics->DrawImage(pThumbnail,96,96);
Posted
Updated 24-Jan-17 22:50pm
v2
Comments
Richard MacCutchan 21-Jan-17 4:52am    
The name getthumbnailumage is used somewhere in your code, but is not correct.
KarstenK 24-Jan-17 8:54am    
plz show the complete error message which the linker spitted out. I need more details for an answer.

1 solution

You must implement the annonced ThumbnailCallback function in your code.
C++
Image::GetThumbnailImageAbort^ callback =  gcnew Image::GetThumbnailImageAbort(ThumbnailCallback);//you need to implement the function!!!

Look here for the details. The functions must return a bool. False means not to abort.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900