Dim s As Shape
ActiveLayer.Shapes.All.CreateSelectionFor Each s In ActiveSelection.Shapes.FindShapesIf s.Type = cdrMeshFillShape ThenSet s1 = s.ConvertToBitmapEx(cdrCMYKColorImage, False, True, 200, cdrNormalAntiAliasing, True, False, 95)End IfNext
This macro search all meshes and make it bitmap, but not in powerclips, so how to do this with powerclip in document?
i found a solution :)
this is probably cumbersome and there is a more elegant solution, but i make all i can.
Dim SR As ShapeRange, SM As ShapeRange, GN As New ShapeRange, s As Shape, g As Shape, b As Shape, PG As New ShapeRangeOn Error GoTo ErDnActiveDocument.BeginCommandGroupActiveLayer.Shapes.All.CreateSelectionFor Each s In ActiveSelection.ShapesIf Not s.Type = cdrGroupShape Thens.RemoveFromSelectionEnd IfNextSet PG = ActiveSelectionRangelngObjCount = ActiveSelection.Shapes.CountFor i = 1 To lngObjCountPG(i).CreateSelectionActiveSelection.UngroupAllSet SM = ActiveSelectionRangeFor Each g In ActiveSelection.Shapes.FindShapes(Query:="!@com.powerclip.IsNull")Set SR = g.PowerClip.ExtractShapesSR.UngroupAllFor Each b In ActiveSelection.ShapesIf Not b.Transparency.Type = cdrNoTransparency ThenSet AM = b.ConvertToBitmapEx(cdrCMYKColorImage, False, True, 200, cdrNormalAntiAliasing, True, False, 95)ElseSet AM = bEnd IfGN.Add AMNextGN.AddToPowerClip g, cdrFalseNextSM.GroupNextErDn:ActiveDocument.EndCommandGroupEnd Sub