mirror of
https://github.com/4sval/FModel.git
synced 2026-04-24 14:59:29 -05:00
watermarks don't need to be a square anymore
This commit is contained in:
parent
cfc662b522
commit
16e39233a6
|
|
@ -270,7 +270,7 @@ namespace FModel.Forms
|
|||
bmp.StreamSource = image.BaseStream;
|
||||
bmp.EndInit();
|
||||
|
||||
drawingContext.DrawImage(ImagesUtility.CreateTransparency(bmp, opacity), new Rect(xPos, yPos, scale, scale));
|
||||
drawingContext.DrawImage(ImagesUtility.CreateTransparency(bmp, opacity), new Rect(xPos, yPos, bmp.Width * (scale / 515), bmp.Height * (scale / 515)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,15 @@ namespace FModel.Methods.Assets.IconCreator
|
|||
bmp.EndInit();
|
||||
bmp.Freeze();
|
||||
|
||||
IconCreator.ICDrawingContext.DrawImage(ImagesUtility.CreateTransparency(bmp, FProp.Default.FWatermarkOpacity), new Rect(FProp.Default.FWatermarkXPos, FProp.Default.FWatermarkYPos, FProp.Default.FWatermarkScale, FProp.Default.FWatermarkScale));
|
||||
IconCreator.ICDrawingContext.DrawImage(
|
||||
ImagesUtility.CreateTransparency(bmp, FProp.Default.FWatermarkOpacity),
|
||||
new Rect(
|
||||
FProp.Default.FWatermarkXPos,
|
||||
FProp.Default.FWatermarkYPos,
|
||||
bmp.Width * (FProp.Default.FWatermarkScale / 515),
|
||||
bmp.Height * (FProp.Default.FWatermarkScale / 515)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user