Hi,
I want to have a drawablebutton with a image and with a button background.
I understand that i can do this way:
"DrawableImage up;
up.setImage(ImageCache::getFromMemory(BinaryData::door_png, BinaryData::door_pngSize));
addAndMakeVisible(TestButton = new DrawableButton("btnTest", DrawableButton::ImageRaw));
TestButton->addListener(this);
TestButton->setBounds(100, 100, 100, 100);
TestButton->setColour(DrawableButton::backgroundColourId, Colours::beige);
TestButton->setImages(&up, &up, &up);"
The button size is 100 width and 100 height and i want my image door.png that is transparent to be with a size in pixels of 50 pixels height and width in the middle of the DrawableImage that as a color in background that is beige. To give the similiar look as Metro buttons in Windows 8.
Does anyone has the solution ?
Thanks,
Paulo
