Recent

Author Topic: BGRA Virtual Screen  (Read 5806 times)

Blestan

  • Sr. Member
  • ****
  • Posts: 461
BGRA Virtual Screen
« on: July 23, 2016, 10:07:59 am »
Please some code to use virtualscreen for replacement of TPaintBox


Thanks
Speak postscript or die!
Translate to pdf and live!

Handoko

  • Hero Member
  • *****
  • Posts: 5129
  • My goal: build my own game engine using Lazarus
Re: BGRA Virtual Screen
« Reply #1 on: July 23, 2016, 11:01:57 am »

circular

  • Hero Member
  • *****
  • Posts: 4194
    • Personal webpage
Re: BGRA Virtual Screen
« Reply #2 on: July 23, 2016, 12:59:22 pm »
There are some explanations here:
http://wiki.freepascal.org/BGRAControls#BGRAVirtualScreen

Basically, you need to redefine the OnRedraw event and in there draw the content.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018