摘要:
internal enum AccentState { ACCENT_DISABLED = 0, ACCENT_ENABLE_GRADIENT = 1, ACCENT_ENABLE_TRANSPARENTGRADIENT = 2, ACCENT_ENABLE_BLURBEHIND = 3, ACCE 阅读全文
摘要:
[TemplatePart(Name = "PART_Content", Type = typeof(ToggleButton))] [TemplatePart(Name = "Expander", Type = typeof(Panel))] public class OTreeViewItem 阅读全文
摘要:
代码: public class AttachedProperty { static AttachedProperty? instance = null; static object instanceLock = new object(); public static AttachedPropert 阅读全文
摘要:
using System; using System.Windows; using System.Windows.Media; using System.Windows.Shapes; namespace WpfApp2.Controls { public class Arc : Shape { S 阅读全文
摘要:
/// <summary> /// 控件抖动 /// </summary> /// <param name="translate"></param> /// <param name="power">抖动第一下偏移量</param> /// <param name="range">减弱幅度(小于等于p 阅读全文
摘要:
界面: <Canvas x:Name="container"> <Viewbox x:Name="player" Width="50" Height="50" RenderTransformOrigin="0.5,0.5"> <Viewbox.RenderTransform> <TransformG 阅读全文
摘要:
public static List<Rect> TileRects(Size rect, Size container) { List<Rect> result = new List<Rect>(); if (rect.Width > container.Width && rect.Width > 阅读全文
摘要:
CCITT G3/G4 1D/2D指: CCITT Group3(T.4) 1D(纯1维); CCITT Group3(T.4) 2D(至少一行1维(第一行开始连续行),剩余行2维); CCITT Group4(T.6) 2D(纯2维); 针对纯黑色(0)和白色(1)的位图编码方案; CCITT G 阅读全文
摘要:
public class ASCII85 { static List<byte> whiteSpaces = new List<byte>(new byte[] { 0, 9, 10, 12, 13, 32 }); public static byte[] Encode(byte[] bs) { u 阅读全文
摘要:
1.透明图片“瘦身” public Bitmap Slim(Bitmap bitmap) { int x = bitmap.Width, y = bitmap.Height, m = -1, n = -1; for (int i = 0; i < bitmap.Width; i++) { for ( 阅读全文