Explain in detail, every line of code, how do you describe bitmap?



  • How do you describe the object bitmap, tie it to the window context, and draw a bitumap? Bring the jug in. minimum code.



  • Example of how to draw on the working table:

    var bmp:Tbitmap; 
    begin
    bmp:=Tbitmap.Create;
    bmp.canvas.Handle:=getdc(0);       //получаем контекст(HDC) рабочего стола 
    bmp.canvas.Rectangle(0,0,200,100); // А далее рисуем, как в обычном TbitMap`е =)
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2