Click here to Skip to main content
15,890,438 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Another random number generator Pin
cp987626-Nov-07 0:51
cp987626-Nov-07 0:51 
GeneralRe: Another random number generator Pin
ChandraRam26-Nov-07 0:54
ChandraRam26-Nov-07 0:54 
GeneralRe: Another random number generator Pin
Mark Churchill19-Dec-07 15:10
Mark Churchill19-Dec-07 15:10 
GeneralRe: Another random number generator Pin
ChandraRam19-Dec-07 18:58
ChandraRam19-Dec-07 18:58 
QuestionEM algorithm Pin
yanhe011615-Nov-07 12:11
yanhe011615-Nov-07 12:11 
AnswerRe: EM algorithm Pin
Luc Pattyn15-Nov-07 12:19
sitebuilderLuc Pattyn15-Nov-07 12:19 
AnswerRe: EM algorithm Pin
El Corazon20-Nov-07 7:35
El Corazon20-Nov-07 7:35 
QuestionHow is BitBlt implemented [modified] Pin
Force Code15-Nov-07 8:15
Force Code15-Nov-07 8:15 
I am trying to write some graphics code using the web-development tool Adobe ActionScript (version 3). AS3 has many sophisticated graphics capabilities, but what it does not have apparently, is any sort of BitBlt capability with raster operation (ROP) codes. This may have something to do with it being based on 'Sprites' which from my brief persual of some wikipedia info, is a different philosophy altogether from BitBlt.

I was trying to emulate BitBlt from scratch in ActionScript, by merely dumping three bitmaps into arrays, and then going through them pixel by pixel doing the logical ops on each pixel. As could probably be expected, this is way too slow. It was taking a full second to do ROP bitmap combinations that BitBlt would do instantaneously. (This has nothing to do with any inherent limitation in Actionscript, which does plenty of things graphical instantaneously.)

So I need to find out the algorithms that BitBlt is employing to do what it does and if its possible for me to emulate that (assuming that BitBlt isn't relying primarily on graphics hardware that can't be accessed from a web application.)

Important point:
There is only one ROP code I need to use, so possibly it could be optimized on that basis. (Its one of the more complex ROP codes involving XOR and AND of three different bitmaps).


-- modified at 14:44 Thursday 15th November, 2007
AnswerRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 8:27
sitebuilderLuc Pattyn15-Nov-07 8:27 
GeneralRe: How is BitBlt implemented Pin
Force Code15-Nov-07 8:43
Force Code15-Nov-07 8:43 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 9:22
sitebuilderLuc Pattyn15-Nov-07 9:22 
GeneralRe: How is BitBlt implemented Pin
Force Code15-Nov-07 9:54
Force Code15-Nov-07 9:54 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 10:16
sitebuilderLuc Pattyn15-Nov-07 10:16 
GeneralRe: How is BitBlt implemented [modified] Pin
Force Code15-Nov-07 11:12
Force Code15-Nov-07 11:12 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 12:03
sitebuilderLuc Pattyn15-Nov-07 12:03 
GeneralRe: How is BitBlt implemented [modified] Pin
Force Code15-Nov-07 13:19
Force Code15-Nov-07 13:19 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn15-Nov-07 14:01
sitebuilderLuc Pattyn15-Nov-07 14:01 
GeneralI Completely agree with DQNOK Pin
CPallini16-Nov-07 4:25
mveCPallini16-Nov-07 4:25 
GeneralRe: I Completely agree with DQNOK Pin
Luc Pattyn16-Nov-07 6:08
sitebuilderLuc Pattyn16-Nov-07 6:08 
GeneralRe: How is BitBlt implemented Pin
Dan Neely15-Nov-07 10:48
Dan Neely15-Nov-07 10:48 
GeneralRe: How is BitBlt implemented Pin
DQNOK16-Nov-07 3:46
professionalDQNOK16-Nov-07 3:46 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn16-Nov-07 3:55
sitebuilderLuc Pattyn16-Nov-07 3:55 
GeneralRe: How is BitBlt implemented Pin
Force Code16-Nov-07 7:49
Force Code16-Nov-07 7:49 
GeneralRe: How is BitBlt implemented Pin
Luc Pattyn16-Nov-07 8:27
sitebuilderLuc Pattyn16-Nov-07 8:27 
GeneralRe: How is BitBlt implemented Pin
Skippums16-Nov-07 9:02
Skippums16-Nov-07 9:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.