Hi,
When a user selects a larger or smaller page size, I rescale the printer layers with this function.
private void RefitLayer(PrinterLayer printerLayer, double widthRatio, double heightRatio)
{
RectangleShape oldTransform = printerLayer.GetBoundingBox();
printerLayer.SetPosition(oldTransform.Width * widthRatio, oldTransform.Height * heightRatio,
new PointShape(oldTransform.GetCenterPoint().X * widthRatio, oldTransform.GetCenterPoint().Y * heightRatio),
PrintingUnit.Point);
}
This works well, except it stretches shape file layers to an undesirable resolution. Is there a way to increase to the resolution of a shape file layer parented to a Map Printer Layer when it has been stretched?
Thanks,
-Mitchell