Declined
Last Updated: 15 May 2019 13:38 by ADMIN
Patrick
Created on: 02 Apr 2019 12:27
Category: RichTextBox
Type: Feature Request
0
Image Editor Dialog enhancement

With a picture of original size like this : width 2 800 and Height 1376. On the screen the picture is around 470 by 230. If I go to the Image Editor, it shows me the picture size itself but not the area size used by the picture. It is a good thing to have the original picture's dimension but we work with the dimension used in the document. So, could you do something to resize the picture used in the document.

In my samples, you'll see my picture in a document (ie1), what I see when I go in the Image Editor (ie2) and, when I go to the Resize section (ie3). Suggestion, put the original image's dimension on the top of the right corner in the resize section. The width and Height should show the dimension in the document.

Thanks a lot, 

Attached Files:
2 comments
ADMIN
Boby
Posted on: 15 May 2019 13:38
Hello,

The item is declined as duplicate of RichTextBox: Show the actual size of the Image in the UI.

Regards,
Boby
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Boby
Posted on: 09 Apr 2019 12:03
Hello Patrick,

I can see that you already made the RichTextBox: Show the actual size of the Image in the UI request in our feedback portal. I just tried to extend the workaround provided back then by Tanya, and it seems that the following change of the StartExecuteTool method should satisfy your requirements:
private void StartExecuteTool(string executeToolName)
{
    if (this.ImageEditorUI.ImageEditor == null)
    {
        this.ForceApplyTemplate();
    }
 
    this.ImageEditorUI.ImageEditor.ScaleFactor = this.originalAspect.Width;
 
    if (!string.IsNullOrEmpty(executeToolName))
    {
        ITool toolToExecute = this.Resources[executeToolName] as ITool;
        if (toolToExecute != null)
        {
            this.Dispatcher.BeginInvoke(new Action(() =>
                {
                    if (this.ImageEditorUI.ImageEditor != null)
                    {
                        this.ImageEditorUI.ImageEditor.ExecuteTool(toolToExecute);
                    }
                }));
        }
    }
}

At this moment, we are not sure if this is the best behavior of the product, so we we refrain from adding the change in the code base.

Regards,
Boby
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.