In un programma ho inserito una breve animazione utilizzando una serie di bitmap unitamente alla funzione SetBmp. Funziona egregiamente, ma durante l'animazione, l'immagine "sfarfalla", "lampeggia" (non so come definirla). E' possibile eliminare questo fenomeno?
Grazie.
Pier Luigi
Animazione con bitmap
Moderator: Enrico Maria Giordano
- Pier Luigi
- Posts: 58
- Joined: Fri Oct 07, 2005 6:30 am
- Location: Rome - Italy
- Antonio Linares
- Site Admin
- Posts: 42414
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
- Pier Luigi
- Posts: 58
- Joined: Fri Oct 07, 2005 6:30 am
- Location: Rome - Italy
- Antonio Linares
- Site Admin
- Posts: 42414
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
Pier,
I guess that you mean "flickering". If yes, then Class TBitmap already uses "double buffer" painting technique to avoid the flickering.
Please check if your source\classes\bitmap.prg file contains these lines:
I guess that you mean "flickering". If yes, then Class TBitmap already uses "double buffer" painting technique to avoid the flickering.
Please check if your source\classes\bitmap.prg file contains these lines:
Code: Select all | Expand
METHOD Paint() CLASS TBitmap
local aInfo := ::DispBegin()
...
- Enrico Maria Giordano
- Posts: 8736
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 1 time
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42414
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
- Pier Luigi
- Posts: 58
- Joined: Fri Oct 07, 2005 6:30 am
- Location: Rome - Italy
- Antonio Linares
- Site Admin
- Posts: 42414
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact: