diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index db4d63d2a5..cfb269b6c6 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -2869,7 +2869,7 @@ wxGraphicsBitmap wxGDIPlusRenderer::CreateSubBitmap( const wxGraphicsBitmap &bit wxNullGraphicsBitmap, wxS("Invalid bitmap region")); wxGraphicsBitmap p; - p.SetRefData(new wxGDIPlusBitmapData( this , image->Clone( (REAL) x , (REAL) y , (REAL) w , (REAL) h , PixelFormat32bppPARGB) )); + p.SetRefData(new wxGDIPlusBitmapData( this , image->Clone( (REAL) x , (REAL) y , (REAL) w , (REAL) h , image->GetPixelFormat()) )); return p; } else