Notifications
Clear all

[Closed] How to show the alpha of a bitmap?

I render a picture to a bitmap (it’s not a file, it’s a render inside a variable)

The bitmap has this configuration:

bitmaptemprender = bitmap 320 RenFPHeight gamma:IDisplayGamma.gamma color:red hdr:false hasAlpha:true

And i have a bitmap inside my UI

bitmap BitmUI bitmap:bitmaprender pos:[20,250] width:320 height:240

And for last i have another bitmap where i copy my render, this last bitmap is variable but the parameter are always the same:

bitmapvariable = bitmap 320 RenFPHeight gamma:IDisplayGamma.gamma color:red hdr:false hasAlpha:true

Now what i do is to render to bitmaptemprender, then copy the bitmaptemprender to bitmapvariable (to store it, just in case i do another render) and when i want to see that render (think that i did some more renders) i recopy bitmapvariable to bitmaptemprender and then configure BitmUI to have bitmaptemprender as bitmap.

Now…what can i do now to show in my BitmUI the alpha channel of my bitmaptemprender (wich must be the same of course of bitmapvariable, i think that because i’m copying the entire bitmap with the same parameters)

Cheers.

2 Replies

OK, i have a bigger problem here, when i use the render() command to render to my bitmaptemprende, there is no alpha channel in the render, do you know why?

Cheers.

OK, now i use a variable to store the render and also use the command To: to store the render in another variable wich i’ll save to disk as tga with alpha split to get the alpha channel loaded after that in another variable, so i can store rgb and alpha channel in separate variables so i can switch between the two channels, easy but a bit twisted hehe.

Cheers.