Back

Circle Image

Circle Image objects using the CreateCircleImage method of the Support object:

 sup.CreateCircleImage( file, radius );

Example - Basic

app.LoadPlugin( "Support" );

function OnStart()
{
 lay = app.CreateLayout( "Linear", "VCenter,FillXY" );

 sup = app.CreateSupport();

 img = sup.CreateCircleImage( "/Sys/Img/Hello.png", 0.5 );
 img.SetBorderWidth( 3 );
 img.SetBorderColor( color.BLUE );
 lay.AddChild( img );

 app.AddLayout( lay );
}
  Copy   Copy All    Run   

The following methods are available on the Circle Image object:

 GetType()
 SetBorderWidth( width )
 SetBorderColor( color )
 SetBorderOverlay( boolean )
 SetCircleBackColor( color )
 SetImage( src )

Other Methods:

Show Other Methods

A fast circular ImageView perfect for profile images. This is based on RoundedImageView from Vince Mi which itself is based on techniques recommended by Romain Guy, licensed under the Apache 2.0 License. go github page