public Color 取得手寫物件調色盤的實際Color(手寫物件調色盤 手寫物件調色盤) { Color solidColorBrush = Colors.Black; switch (手寫物件調色盤) { case 手寫物件調色盤.img_color_black: solidColorBrush = ColorsHelper.Parse("ff1a1a1a"); break; case 手寫物件調色盤.img_color_gray: solidColorBrush = ColorsHelper.Parse("ff999999"); break; case 手寫物件調色盤.img_color_r: solidColorBrush = ColorsHelper.Parse("ffff0000"); break; case 手寫物件調色盤.img_color_b: solidColorBrush = ColorsHelper.Parse("ff006cff"); break; case 手寫物件調色盤.img_color_g: solidColorBrush = ColorsHelper.Parse("ff0da522"); break; case 手寫物件調色盤.img_opacity_b: solidColorBrush = ColorsHelper.Parse("6627e8ff"); break; case 手寫物件調色盤.img_opacity_g: solidColorBrush = ColorsHelper.Parse("66999999"); break; case 手寫物件調色盤.img_opacity_r: solidColorBrush = ColorsHelper.Parse("66ff0000"); break; case 手寫物件調色盤.img_opacity_o: solidColorBrush = ColorsHelper.Parse("66ffa200"); break; case 手寫物件調色盤.img_opacity_y: solidColorBrush = ColorsHelper.Parse("66ffea00"); break; default: break; } return solidColorBrush; }
public 使用中的繪圖工具() { this.手或筆與橡皮擦 = 手或筆與橡皮擦.手; this.線條粗細 = 1; this.手寫物件調色盤 = 手寫物件調色盤.img_color_r; }