2017-01-03 59 views
0

我正在使用Oxyplot使用圖像註釋來繪製圖像。我需要設置軸間隔空間,以便圖像看起來舒展。這裏我所說的設置軸間隔空間如何在座標軸上的間隔之間設置空間oxyplot

這正常空間

Normal space

的意思,這是我多麼希望它

After set the axis interval space

我從一個應用程序得到它。我如何用Oxyplot實現這一目標?

回答

0

如果你想舒展它使用水平財產Width

plotModel.Annotations.Add(new ImageAnnotation 
{ 
    ImageSource = oxyImage, 
    Opacity = 0.15, 
    OffsetX = new PlotLength(0, PlotLengthUnit.RelativeToPlotArea), 
    OffsetY = new PlotLength(0, PlotLengthUnit.RelativeToPlotArea), 
    //Height = new PlotLength(0.5, PlotLengthUnit.RelativeToPlotArea), 
    Width = new PlotLength(0.5, PlotLengthUnit.RelativeToViewport), 
}); 

如果你對此有何評論heigth或寬線,圖像將按比例在同一時間比積。