This may help with the image part of your question:
Code:
.semi-trans {
opacity : 0.5;
}
.red-back {
font-size: 16px;
font-weight : bold;
background-color : #FF0000;
}
.red tspan {
fill: #ff0000;
font-size : 16px;
font-weight : bold;
}
Code:
Ext.define('MyImage', {
extend: 'Ext.container.Container',
height: 500,
width: 500,
layout: {
type: 'absolute'
},
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [
{
xtype: 'image',
height: 200,
width: 200,
src: 'html5-buildings.png',
cls: 'semi-trans',
x: 150,
y: 75
},
{
xtype: 'text',
text: 'Sample Vertical Text Item',
x: 240,
y: 180,
cls: 'red',
degrees: 90
}
]
});
me.callParent(arguments);
}
});
Ext.onReady(function () {
Ext.create('MyImage', {
renderTo: Ext.getBody()
});
});
Resulting image:
f287324-ss.png