Kaydet (Commit) 2f866000 authored tarafından matteocam's avatar matteocam

Transparency with DrawTransparent in addition to DrawRect

Change-Id: I9e8221652b74a3004857ef4b12c6b45563a373b5
üst 6ec2a1a6
...@@ -149,11 +149,14 @@ void OutputDevice::ImplDrawTextRect( long nBaseX, long nBaseY, ...@@ -149,11 +149,14 @@ void OutputDevice::ImplDrawTextRect( long nBaseX, long nBaseY,
nX += nBaseX; nX += nBaseX;
nY += nBaseY; nY += nBaseY;
//mpGraphics->DrawRect( nX, nY, nWidth, nHeight, this ); // original code mpGraphics->DrawRect( nX, nY, nWidth, nHeight, this ); // original code
Rectangle aRect( Point( nX, nY ), Size( nWidth+1, nHeight+1 ) ); Rectangle aRect( Point( nX, nY ), Size( nWidth+1, nHeight+1 ) );
Polygon aPoly( aRect ); Polygon aPoly( aRect );
PolyPolygon aPolyPoly(aPoly); PolyPolygon aPolyPoly(aPoly);
DrawTransparent(aPolyPoly, 50); DrawTransparent(aPolyPoly, 50);
// Code above is wrong: it just messes up.
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment