Well I am suggesting following code which you can use to fix the matter of yours and see whether it is working or not.
Code:
// Load background image from file and adjust resolution
Bitmap ^bmpTemp = gcnew Bitmap("..\\palancaBase_upsampled.bmp");
Diagnostics::Trace::Assert(bmpTemp != nullptr, "Construction of background bitmap from file failed");
Graphics ^grTemp = CreateGraphics();
bmpTemp->SetResolution(grTemp->DpiX, grTemp->DpiY);
BackgroundImage = bmpTemp;
I am sure that the above mentioned code would definitely help you pout to fix the matter of yours.
Bookmarks