The documentation says:
My code says:You are responsible for deleting the GDI bitmap and the GDI palette. However, you should not delete the GDI bitmap or the GDI palette until after the GDI+ Bitmap object is deleted or goes out of scope.
I'm wondering:Code:Bitmap bmpPdf(hBitmap, NULL); .... bmpPdf.~Bitmap(); DeleteObject(hBitmap);
- Is calling the destructor explicitly the equivalent of the object going out of scope?
- Is this acceptable practise?
- Is this common as I haven't seen it before?