public Bitmap TransformImage(Bitmap bitmap, ImageRequestContext context) { int width = 0; int height = 0; bool keepRatio = false; bool imbedInBackground = false; bool fastMode = false; fastMode = RetrieveFromDicionary(context.Attributes, QUERY_KEY_FAST, false); keepRatio = RetrieveFromDicionary(context.Attributes, QUERY_KEY_KEEP_RATIO, false); imbedInBackground = RetrieveFromDicionary(context.Attributes, QUERY_KEY_IMBED_IN_BACKGROUND, false); width = RetrieveFromDicionary(context.Attributes, QUERY_KEY_WIDTH, 100); height = RetrieveFromDicionary(context.Attributes, QUERY_KEY_HEIGHT, 100); Bitmap scaledImage = ResizeImage(bitmap, width, height, keepRatio, imbedInBackground, fastMode); return(scaledImage); }
public void PreImageLoad(ImageRequestContext context) { }