Retrieves a bitmap of the image specified in ImageUrl.

protected virtual Bitmap GetImageBitmap();

Remarks

You must subclass ImageCropper and override this method if the image specified by ImageUrl requires credentials or a session cookie to access, since the image is retrieved via an HTTP GET request.

Example

If the ImageUrl is a local url you can override this method with the one shown below:

protected override Bitmap GetImageBitmap ()
{
    return new Bitmap(Page.Server.MapPath(ImageUrl));
}

See Also

ImageCropper Class | KrispWare Namespace