mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed the problem that the BarImage disappears if "DynamicVariables=1" is set in BAR meter.
Added the new image tinting / transforming function in IMAGE meter. (ImageTint, GreyScale, ColorMatrix(1-5), ImageFlip, ImageRotate)
This commit is contained in:
@ -417,16 +417,17 @@ bool CMeter::Draw(Graphics& graphics)
|
||||
{
|
||||
if (IsHidden()) return false;
|
||||
|
||||
graphics.SetInterpolationMode(InterpolationModeDefault);
|
||||
graphics.SetCompositingQuality(CompositingQualityDefault);
|
||||
|
||||
if (m_AntiAlias)
|
||||
{
|
||||
//graphics.SetInterpolationMode(InterpolationModeBicubic); // Bicubic is not suitable for shrinking an image.
|
||||
graphics.SetInterpolationMode(InterpolationModeDefault);
|
||||
graphics.SetSmoothingMode(SmoothingModeHighQuality);
|
||||
graphics.SetPixelOffsetMode(PixelOffsetModeHighQuality);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.SetInterpolationMode(InterpolationModeDefault);
|
||||
graphics.SetSmoothingMode(SmoothingModeNone);
|
||||
graphics.SetPixelOffsetMode(PixelOffsetModeDefault);
|
||||
}
|
||||
|
Reference in New Issue
Block a user