Well, I have made some efforts.
I created two BView object called BackView and FrontView. Each of them has different bitmap to display (BackPic, FrontPic).
I put FrontPic on BackPic and FrontPic has a transparent background. These images were made by WoderBrush in Haiku.
As my program starts it uses alpha channel but main problem is the backgorund. I supposed that background picture would be BackPic for FrontPic but desktop got background! I cannot imagine how could be happened. I have some screenshots:
My code is here:
class FrontView : public BView
class BackView : public BView
: BView(BRect(0, 0, 200, 100), “BackView”, B_FOLLOW_NONE, B_WILL_DRAW)
FrontPic = BTranslationUtils::GetBitmapFile("/boot/home/Projects/X3/minta2.png");
: BView(BRect(0, 0, 200, 200), “BackView”, B_FOLLOW_NONE, B_WILL_DRAW)
BackPic = BTranslationUtils::GetBitmapFile("/boot/home/Projects/X3/minta1.png");
: BWindow(BRect(100, 100, 500, 400), “Main Window”, B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS)
fv = new FrontView();
bv = new BackView();
void MainWindow::MessageReceived(BMessage *msg)
How can I fix this problem?