//============================================================ // <T>绘制处理。</T> // // @param sender 发送者 // @param e:event 事件 //============================================================ public void DrawPreviewLayers() { if (!_designLayers) { return; } FUiControlLayers layers = _designFrame.PreviewLayers; if (!layers.IsEmpty()) { float scale = _context.Scale; FDxContext2d context = _context.Context; SIntPoint2 position = _designFrame.CalculateDisplayPosition(); int count = layers.Count; for (int n = count - 1; n >= 0; n--) { FUiControlLayer layer = layers[n]; if (layer.OptionVisible) { context.DrawBitmap(layer.Bitmap, position.X, position.Y, (int)(layer.Size.Width * scale), (int)(layer.Size.Height * scale), 1.0f); } } } }