public void Paint(TextObject text) { using (var graph = Graphics.FromImage(_page.ImageBuffer)) using (var b = new SolidBrush(text.Color)) { graph.DrawString(text.Text, text.Font, b, text.Location); } }
public CreateTextAction(TextObject text) { Text = text; Visible = true; RePaint = true; IsToAll = true; }
public CreateTextAction(Page page, TextObject text) : this(text) { Page = page; }
private CreateTextAction GetCreateTextAction(int senderId, NetworkStream stream) { // Location | Size | Text | Font | Color // Shape type var text = new TextObject(); // Location text.Location = ReadPointF(stream); // Size text.Size = ReadSizeF(stream); // Outline width text.Text = ReadString(stream); // Outline dash text.Font = ReadFont(stream); // Fill Color text.Color = ReadColor(stream); text.UserId = senderId; return new CreateTextAction(_manager.Page, text); }