Exemple #1
0
 /// <summary>
 /// Return the URL for the image of a work.
 /// </summary>
 /// <param name="sWorkID">The ID of the work.</param>
 /// <param name="cropping">The type of cropping to apply.</param>
 /// <param name="size">The size of the image.</param>
 /// <param name="view">The type of view to use.</param>
 /// <returns>The URL for the image.</returns>
 public static Uri WorkImageURL( string sWorkID, ArtCropping cropping, ArtSize size, ArtView view )
 {
     return WorkImageURL( sWorkID, cropping, size, view, "" );
 }
Exemple #2
0
 /// <summary>
 /// Return the URL for the image of a work.
 /// </summary>
 /// <param name="sWorkID">The ID of the work.</param>
 /// <param name="cropping">The type of cropping to apply.</param>
 /// <param name="size">The size of the image.</param>
 /// <param name="view">The type of view to use.</param>
 /// <param name="sExtras">Any extra bits of path you want to add before the file.</param>
 /// <returns>The URL for the image.</returns>
 public static Uri WorkImageURL( string sWorkID, ArtCropping cropping, ArtSize size, ArtView view, string sExtras )
 {
     return new Uri( RBImageServer( sWorkID ) +
         "img/art/" +
         ( cropping == ArtCropping.Cropped ? "cropped/" : "" ) +
         "size:" + RBEnums.ToURL( size ) + "/" +
         "view:" + RBEnums.ToURL( view ) + "/" +
         sExtras +
         sWorkID + ".jpg" );
 }