Bug+Fix for graph overflow with minimum and transparence
Posted: Mon Aug 07, 2006 2:35 pm
Problem:
When you set the minimum value of a x axis and have a areaseries with transparency the area is drawn over the y axis.
Cause:
The TeeBlendBitmaps function used for the transparency sets the pixelformat of the bitmap of the canvas of the chart.
Changing the pixelformat deletes the current clipping region which would prevent the overdrawing of the axis.
Solution:
Save and restore the clipping region before changing the pixelformat:
Hope this helps,
Jens
When you set the minimum value of a x axis and have a areaseries with transparency the area is drawn over the y axis.
Cause:
The TeeBlendBitmaps function used for the transparency sets the pixelformat of the bitmap of the canvas of the chart.
Changing the pixelformat deletes the current clipping region which would prevent the overdrawing of the axis.
Solution:
Save and restore the clipping region before changing the pixelformat:
Code: Select all
region:hrgn; //for var section
Region:=CreateRectRgn(0,0,0,0);
getcliprgn(bbitmap.canvas.handle,region);
BBitmap.PixelFormat:=TeePixelFormat;
selectcliprgn(bbitmap.canvas.handle,region);
deleteobject(region);
Hope this helps,
Jens