D
doc.bullwinkle
I want to implement a 32 bit bitmap with alfa channel in an arm7
micro....the function is
new_pixel=alfa*pixel_foreground+(1-alfa)*pixel_background
alfa is an 8 bit value from zero to one (from zero to 255). This
function can be done in this way:
1)float cast of alfa and pixel_foreground
2)alfa1=alfa/255
3)new_value1=alfa1*pixel_foreground
3)new_pixel=new_value1+new_value2
3)int cast af new_pixel
This procedure is time consuming and very difficult without
mathematical coprocessor...any better way?
Thanks
micro....the function is
new_pixel=alfa*pixel_foreground+(1-alfa)*pixel_background
alfa is an 8 bit value from zero to one (from zero to 255). This
function can be done in this way:
1)float cast of alfa and pixel_foreground
2)alfa1=alfa/255
3)new_value1=alfa1*pixel_foreground
3)new_pixel=new_value1+new_value2
3)int cast af new_pixel
This procedure is time consuming and very difficult without
mathematical coprocessor...any better way?
Thanks