Bonjour, je fais un print screen, mais je trouve mon image trop lourde. y'a t-il 1 moyen de reduire sa taille ? merci
code du print screen :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 Graphics::TBitmap *Bitmap = new Graphics::TBitmap; Bitmap->Height = Screen->Height; Bitmap->Width = Screen->Width; HDC ScreenSrc = GetWindowDC(0); BitBlt(Bitmap->Canvas->Handle, 0, 0, Screen->Width, Screen->Height, ScreenSrc, 0, 0, SRCCOPY); Bitmap->SaveToFile(ExtractFilePath(Application->ExeName) + "Image.bmp"); ReleaseDC(GetDesktopWindow(), ScreenSrc); delete Bitmap;
Partager