Exemplo n.º 1
0
 /// <summary>
 /// Get image to be used if HTML image load failed.
 /// </summary>
 public RImage GetLoadingFailedImage()
 {
     if (_errorImage == null)
     {
         _errorImage = GetTheLoadingFailedImage();
     }
     return(_errorImage);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get image to be used while HTML image is loading.
 /// </summary>
 public RImage GetLoadingImage()
 {
     if (_loadImage == null)
     {
         _loadImage = GetTheLoadingImage();
     }
     return(_loadImage);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Save the given image to file by showing save dialog to the client.
 /// </summary>
 /// <param name="image">the image to save</param>
 /// <param name="name">the name of the image for save dialog</param>
 /// <param name="extension">the extension of the image for save dialog</param>
 /// <param name="control">optional: the control to show the dialog on</param>
 protected virtual void SaveToFileInt(RImage image, string name, string extension, RControl control = null)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Set the given image to clipboard.
 /// </summary>
 /// <param name="image"></param>
 protected virtual void SetToClipboardInt(RImage image)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Save the given image to file by showing save dialog to the client.<br/>
 /// Not relevant for platforms that don't render HTML on UI element.
 /// </summary>
 /// <param name="image">the image to save</param>
 /// <param name="name">the name of the image for save dialog</param>
 /// <param name="extension">the extension of the image for save dialog</param>
 /// <param name="control">optional: the control to show the dialog on</param>
 public void SaveToFile(RImage image, string name, string extension, RControl control = null)
 {
     SaveToFileInt(image, name, extension, control);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Set the given image to clipboard.<br/>
 /// Not relevant for platforms that don't render HTML on UI element.
 /// </summary>
 /// <param name="image">the image object to set to clipboard</param>
 public void SetToClipboard(RImage image)
 {
     SetToClipboardInt(image);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Draws the specified Image at the specified location and with the specified size.
 /// </summary>
 /// <param name="image">Image to draw. </param>
 /// <param name="destRect">Rectangle structure that specifies the location and size of the drawn image. </param>
 public abstract void DrawImage(RImage image, RRect destRect);
Exemplo n.º 8
0
 /// <summary>
 /// Get TextureBrush object that uses the specified image and bounding rectangle.
 /// </summary>
 /// <param name="image">The Image object with which this TextureBrush object fills interiors.</param>
 /// <param name="dstRect">A Rectangle structure that represents the bounding rectangle for this TextureBrush object.</param>
 /// <param name="translateTransformLocation">The dimension by which to translate the transformation</param>
 public abstract RBrush GetTextureBrush(RImage image, RRect dstRect, RPoint translateTransformLocation);