Unplanned
Last Updated: 20 May 2025 08:47 by ADMIN
Created by: Pascal
Comments: 1
Category: PictureBox
Type: Feature Request
0

Add a call to "OnImageLoaded" to "RadPictureBoxelement.PasteImage()" method or create an event like "ImagePasted" ot be able to tract an image change at this point.

For me I solved this via an Harmony patch that adds a call to OnImageLoaded() on PasteImage()  long time ago. Not really elegant, but I'm a noob in patching with Harmony.

Just want to leave it here for anyone that want ot use this solution too or for Telerik to implement a native way to expose an image change via PasteImage.

[HarmonyPatch(typeof(RadPictureBoxElement))]
[HarmonyPatch("PasteImage")]
public class RadPictureBoxElement_PasteImageFixes
{
    private static readonly Dictionary<RadPictureBoxElement, Image> images = [];

    public static void Prefix(object __instance)
    {
        if (__instance is RadPictureBoxElement pb)
        {
            // Remember our image
            images.Remove(pb);
            images.Add(pb, pb.Image);
        }
    }

    public static void Postfix(object __instance)
    {
        if (__instance is RadPictureBoxElement pb && images.TryGetValue(pb, out var image) && pb.Image != image)
        {
            // Remove first to avoid conflicts on error
            images.Remove(pb);

            // Call "OnImageLoaded"
            var method = typeof(RadPictureBoxElement).GetMethod("OnImageLoaded", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
            method.Invoke(pb, null);
        }
    }
}

Unplanned
Last Updated: 30 Jan 2025 10:31 by ADMIN
Created by: Alok Tibrewal
Comments: 1
Category: PictureBox
Type: Feature Request
0
 
Unplanned
Last Updated: 18 Dec 2023 11:49 by Sean

Currently, SVG image blurs for example when "opacity:0.2995 (...)" See below image:

Unplanned
Last Updated: 26 May 2023 04:45 by ADMIN
Created by: S
Comments: 1
Category: PictureBox
Type: Feature Request
1

Moving the cursor over the image would display a zoomed portion of the image located under the mouse position:

Unplanned
Last Updated: 05 Aug 2022 09:24 by Troy
Created by: Troy
Comments: 0
Category: PictureBox
Type: Feature Request
2

Currently, SVG files that have filter tags in their XML are not respected by the RadPictureBox control. Sample code:

<filter ..>
  <feGaussianBlur .. />
  <feMorphology .. />
  <feGaussianBlur .. />
  <feColorMatrix .. />
  <feComposite .. />
  <feGaussianBlur .. />
  <feDiffuseLighting ...>
	<feDistantLight ... />
  </feDiffuseLighting>
  <feBlend .. />
  <feComposite ../>
  <feSpecularLighting ...>
	<feDistantLight ../>
  </feSpecularLighting>
  <feComposite .. />
</filter>