diff options
Diffstat (limited to 'UVtools.Core/Layer/LayerManager.cs')
-rw-r--r-- | UVtools.Core/Layer/LayerManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UVtools.Core/Layer/LayerManager.cs b/UVtools.Core/Layer/LayerManager.cs index e7b9c7d..773e728 100644 --- a/UVtools.Core/Layer/LayerManager.cs +++ b/UVtools.Core/Layer/LayerManager.cs @@ -1432,7 +1432,7 @@ namespace UVtools.Core using (var vec = new VectorOfVectorOfPoint(new VectorOfPoint(checkArea.Contour))) { - CvInvoke.DrawContours(emguImage, vec, -1, EmguExtensions.WhiteByte, -1); + CvInvoke.DrawContours(emguImage, vec, -1, EmguExtensions.WhiteColor, -1); } using (var intersectingAreasMat = image.CloneBlank()) @@ -1638,7 +1638,7 @@ namespace UVtools.Core var operationText = (PixelText)operation; var mat = modifiedLayers.GetOrAdd(operation.LayerIndex, u => this[operation.LayerIndex].LayerMat); - CvInvoke.PutText(mat, operationText.Text, operationText.Location, operationText.Font, operationText.FontScale, new MCvScalar(operationText.Brightness), operationText.Thickness, operationText.LineType, operationText.Mirror); + mat.PutTextRotated(operationText.Text, operationText.Location, operationText.Font, operationText.FontScale, new MCvScalar(operationText.Brightness), operationText.Thickness, operationText.LineType, operationText.Mirror, operationText.Angle); } else if (operation.OperationType == PixelOperation.PixelOperationType.Eraser) { |