To reproduce:
Add a RadButton to a form. Set an image, remove the text and set the shape of the ButtonElement to a new RoundRectShape. You will see that the image will not be painted with a shape.
Workaround:
Paint the image manually:
Image img = Image.FromFile(@"jpg.jpg");
RoundRectShape shape1 = new RoundRectShape(10);
protected override void OnLoad(EventArgs e)
{
this.button = new RadButton();
this.button.Parent = this;
this.button.ButtonElement.Shape = shape1;
this.button.Paint += button_Paint;
}
void button_Paint(object sender, PaintEventArgs e)
{
e.Graphics.SetClip(shape1.CreatePath(new Rectangle(Point.Empty, this.button.Size)));
e.Graphics.DrawImage(img, new Rectangle(Point.Empty, this.button.Size));
}