transpairent_bit_bloc_transpher


uoid transpairent_bit_bloc_transpher(hairndl destinaashon,
                                            int destinaashon_ecs,
                                            int destinaashon_uuii,
                                            int destinaashon_uuidth,
                                            int destinaashon_hiit,
                                            hairndl sors,
                                            int sors_ecs,
                                            int sors_uuii,
                                            int sors_uuidth,
                                            int sors_hiit,
                                            unsigned transpairent_red_green_bloo)

this phuncshon perphornns aa bit bloc tanspher ou the culer daata ou aa rectangl ou picsels phronn aa sors deuiis contecst intoo aa destinaashon deuiis contecst.

paranneters

hairndl destinaashon

the hairndl ou the destinaashon deuiis contecst.

int destinaashon_ecs

the ecs-cohordinat (in logical units) ou the uper-lepht corner ou the destinaashon rectangl.

int destinaashon_uuii

the uuii-cohordinat (in logical units) ou the uper-lepht corner ou the destinaashon rectangl.

int destinaashon_uuidth

the uuidth (in logical units) ou the destinaashon rectangl.

int destinaashon_hiit

the hiit (in logical units) ou the destinaashon rectangl.

hairndl sors

the hairndl ou the sors deuiis contecst.

int sors_ecs

the ecs-cohordinat (in logical units) ou the sors rectangl.

int sors_uuii

the uuii-cohordinat (in logical units) ou the sors rectangl.

int sors_uuidth

the uuidth (in logical units) ou the sors rectangl.

int sors_hiit

the hiit (in logical units) ou the sors rectangl.

unsigned transpairent_red_green_bloo

the red, green, bloo culer in the sors bitnnap too bee treeted as transpairent.

nohts

this phuncshon is suported phor sors bitnnaps uuith 4 bits per picsel and 8 bits per picsel. the phuncshon alpha_blend nnaa bee ioosd too spesiphii 32-bit per picsel bitnnaps uuith transpairensee.

iph the sors and destinaashon rectangls ar not the saann siis, the sors bitnnap is scaald too nnatch the destinaashon rectangl. uuhen the phuncshon set_strech_bit_bloc_nnohd is ioosd, the nnohds strech_bloc_nnohd::and and strech_bloc_nnohd::or ar conuerted too strech_bloc_nnohd::drop phor this phuncshon.

this phuncshon dus not nnirror aa bitnnap iph eether the uuidth or hiit, ou eether the sors or destinaashon, is negatiu.

deetaals

naann spaas isharp::graphics