Forwarded from Group - Soft IT168 π
Forwarded from Group - Soft IT168 π
β€1
Media is too big
VIEW IN TELEGRAM
ααααΉαα’αααΈααΆααα·αααααΆαα Coreldraw has found multiple Auto-Backup fileβ2024
αααααΆαααααααααΌαααΆαααΆαααααΆαααααΉαααΆα ααα
Sub FastPasteCE_Optimized()
' αα·αααΆα Refresh α’ααααααααΆααααααα’αΆααααααΎααααΈα±ααααΌααααααΏαααΆααα»α
Optimization = True
Dim sCurve As Shape, sBmp As Shape, sNew As Shape
If ActiveSelection.Shapes.Count < 2 Then
MsgBox "ααΌαααααΎαααΎα Curve αα½α αα·α Bitmap ααααααααα!"
Exit Sub
End If
Set sCurve = ActiveSelection.Shapes(1)
For Each sBmp In ActiveSelection.Shapes
If sBmp.StaticID <> sCurve.StaticID Then
Set sNew = sCurve.Duplicate
' C αα·α E (Center alignment)
sNew.CenterX = sBmp.CenterX
sNew.CenterY = sBmp.CenterY
sNew.OrderToFront
End If
Next sBmp
' ααΎαααΆα Refresh αα·ααα αααα ααααΆαααΆα
Optimization = False
ActiveWindow.Refresh
End Sub
Sub FastPasteCE_AutoRotate()
' Disable screen updates to increase execution speed
Optimization = True
Dim sCurve As Shape, sBmp As Shape, sNew As Shape
Dim isCurveHorizontal As Boolean
' Check if at least two objects are selected
If ActiveSelection.Shapes.Count < 2 Then
MsgBox "Please select one Curve first, then select your Bitmaps!"
Optimization = False
Exit Sub
End If
' Set the first selected object as the Master Curve
Set sCurve = ActiveSelection.Shapes(1)
' Determine if the Master Curve is Horizontal or Vertical
isCurveHorizontal = (sCurve.SizeWidth > sCurve.SizeHeight)
For Each sBmp In ActiveSelection.Shapes
' Avoid duplicating the master curve onto itself
If sBmp.StaticID <> sCurve.StaticID Then
Set sNew = sCurve.Duplicate
' Check Bitmap orientation: If it differs from the Curve, rotate 90 degrees
If (sBmp.SizeWidth > sBmp.SizeHeight) <> isCurveHorizontal Then
sNew.Rotate 90
End If
' C and E: Align center horizontally and vertically
sNew.CenterX = sBmp.CenterX
sNew.CenterY = sBmp.CenterY
' Bring the new curve to the front layer
sNew.OrderToFront
End If
Next sBmp
' Re-enable optimization and refresh the screen immediately
Optimization = False
ActiveWindow.Refresh
Application.Refresh ' <--- This is the command you asked for
End Sub
ααΆαααααΆαααααααΌααααααα’α α’α¦ ααΆααααα
ααΈααα
This media is not supported in your browser
VIEW IN TELEGRAM
ααΌαααααα α’α α’α¦ ααΎαα·α α’α§ αααααΆαααα ααα»αααααααα»αααΆαα
αΆααα’αΆααααααααΆ ααΆααΎααααα½αααααΆαααΆαα»α