function MyDialog()
{
this.__base__ = Dialog;
this.__base__();
this.bitmap = new Bitmap( ":/appicon/pixinsight-icon.svg" );
this.bitmapControl = new Control( this );
this.bitmapControl.setScaledMinSize( 256, 256 );
this.bitmapControl.onPaint = function()
{
let g = new Graphics( this );
g.drawBitmap( 0, 0, this.dialog.bitmap.scaledTo( Math.min( this.width, this.height ) ) );
g.end();
};
this.sizer = new HorizontalSizer( this );
this.sizer.margin = 8;
this.sizer.add( this.bitmapControl, 100 );
this.adjustToContents();
}
MyDialog.prototype = new Dialog;
function main()
{
(new MyDialog).execute();
}
main();