Skip to main content

Posts

2008.07.28 New Words

tumor 腫瘤 embrace 擁抱、抓住 ruse 策略、花招 integrity 正直 gratitude 感恩 demise 轉讓 ruminate 反芻、沉思 legacy 遺產、留給後人的東西 pancreatic 胰的 grief 悲痛、不幸 back out 退出、取消 leery 機敏 pledge 立誓 defer 順從 urge 迫切的需求 workaholic 醉心於工作的 fantasize 幻想 oratorical 演說的 slugger 打擊力強的選手 bleeding 流血的 squeeze 壓縮 cement 鞏固、加強 viscerally 發自內心的 From " The Last Lecture"

C# Color.Equals() Color.ToArgb() 的小問題

Color tC; Bitmap tBitmap ; tBitmap = new Bitmap(100,100); BitmapDrawLine(tBitmap, new Point(49,49), new Point(51,51), Color.Gold, 3.0); tC =tBitmap.GetPixel(50, 50); // right if (tC.ToArgb() == Color.Gold.ToArgb()){ Console.Out.WriteLine("Find Gold"); // if( tC.Equals( Color.Gold) ){;} // This will not work //but currently don't know why  } public void BitmapDrawLine(Bitmap bM, Point sPoint, Point ePoint, Color lineColor,float lineThickness)         {             Graphics g = Graphics.FromImage(bM);             Pen myPen = new Pen(lineColor, lineThickness);             myPen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;             myPen.SetLineCap(System.Drawing.Drawing2D.Lin...

C#: call by reference using "ref"

public void ChangeValue( ref uint cB1 , ref uint c12, ref uint c23){     // change value through reference     cB1 = 10;     cB2 = 20;     cB3 = 30; }   public void MainFunction(){     uint cxxB1, cxxB2, cxxB3;     cxxB1 = 0;     cxxB2 = 0;     cxxB3 = 0;     // pass the reference to the method     ChangeValue( ref cxxB1 , ref cxxB2, ref cxxB3);    // print out the value after change     Console.Out.WriteLine("cxxB1 = " + cxxB1); // 10     Console.Out.WriteLine("cxxB2 = " + cxxB2); // 20     Console.Out.WriteLine("cxxB3 = " + cxxB3); // 30 }

2008/03/29

蟲師,看到長角的小女孩就看不下去了,唉,有點噁 盛夏光年,跳著看,不知怎的,結局看完,整個人就悶掉了,寂寞真是   令人害怕的東西。 (每個人,生來就不應該孤獨)