잊지 않겠습니다.

1) Create the Image attribute
System.Drawing.Imaging.ImageAttributes attrib = new System.Drawing.Imaging.ImageAttributes();

2) Set the transparency color key (black for the example)
attrib.SetColorKey(Color.Black, Color.Black);

: 투명으로 지정될 Color를 정해준다. 


3) Draw the image using the image attribute
e.Graphics.DrawImage(backgroundIm, destRect, 0, 0, backgroundIm.Width, backgroundIm.Height, GraphicsUnit.Pixel, attrib);

 

And here is the result with a light green background!

Posted by Y2K
,
KeyDown, KeyUp Event를 이용하거나, Control.ModifierKeys 값을 이용해준다.

일반적으로 Keyboard의 값을 즉각적으로 이용할때는 Event를, 마우스 등과의 같은 동시 이용을 위해서는 ModifierKeys값을 이용하게 된다.
Posted by Y2K
,
  • Programing을 하는 사람들의 생각대로 움직이지 않는다.
    • API 단에서 값의 변경을 취한다
    • Windows Server : Max(200)
    • Windows XP Professional, Home Edition : Max(5)

 : 그래서 이상하게 안되었던 것이였어... -_-

Posted by Y2K
,