I have a pushbutton to save current image to disk. 2 problems
1. it takes at least 15 seconds for FileSaveDialog to open?
2. Cannot get SaveImage or SaveImageAs to work.
Code: Below:
private void butSavePreview_Click(object sender, EventArgs e)
{
string saveFName;
saveFName = Path.GetFileNameWithoutExtension(dgvFiles.CurrentRow.Cells[1].Value.ToString());
radSaveFileDialog1.FileName = saveFName;
radSaveFileDialog1.Filter = "JPG | *.jpg";
if (radSaveFileDialog1.ShowDialog() == DialogResult.OK)
{
saveFName = radSaveFileDialog1.FileName + ".jpg";
radImageEditor1.SaveImage(saveFName);
}
}
4 Answers, 1 is accepted
FYI
I have the the image elements hidden
this.radImageEditor1.ImageEditorElement.CommandsElement.Visibility = ElementVisibility.Hidden;
this.radImageEditor1.ImageEditorElement.ZoomElement.Visibility = ElementVisibility.Hidden;
this.radImageEditor1.ImageEditorElement.CommandsElementWidth = 0;
Hello, Claude,
We already have a known issue regarding the performance of the file dialogs that the Telerik UI for WinForms suite offers. You can track its progress, subscribe for status changes and add your comments on the following link - https://feedback.telerik.com/winforms/1463626-radopenfolderdialog-so-slow-its-unusable
The following KB article demonstrates several tips and tricks how the performance can be improved: https://docs.telerik.com/devtools/winforms/knowledge-base/improve-filedialogs-performance
As to the SaveImage method in combination with a RadSaveFileDialog, it seems to stores the image as expected to the local file system. The attached gif file illustrates the behavior on my end. Am I missing something?
radImageEditor1.SaveImageAs();
or
private void radButton1_Click(object sender, EventArgs e)
{
string saveFName = "";
MyRadSaveFileDialog radSaveFileDialog1 = new MyRadSaveFileDialog();
radSaveFileDialog1.FileName = saveFName;
radSaveFileDialog1.Filter = "JPG | *.jpg";
if (radSaveFileDialog1.ShowDialog() == DialogResult.OK)
{
saveFName = radSaveFileDialog1.FileName + ".jpg";
radImageEditor1.SaveImage(saveFName);
}
}
public class MyRadSaveFileDialog : RadSaveFileDialog
{
protected override FileDialogFormBase CreateFileDialogForm()
{
return new MyRadSaveFileDialogForm();
}
}
public class MyRadSaveFileDialogForm : RadSaveFileDialogForm
{
protected override DialogResult ShowDialogCore(IWin32Window owner = null,
bool addWatcher = true)
{
addWatcher = false;
return base.ShowDialogCore(owner, addWatcher);
}
}
Could you please give us more details about the problems you are experiencing with the image saving? Could you please specify the exact steps how to reproduce the problem? Once we replicate the issue locally, we would be able to investigate the precise case and provide further assistance.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi, Claude,
I am glad that the problem with image saving that you were facing is now resolved.
As to the file dialogs, I am really sorry to hear that you switched to the standard dialogs. I would like to note that we take very seriously reports about performance issues. I have escalated the previously referred feedback item to our developers and I hope that we will include it in the near future's planning.
Please make sure that you cast your vote for the item in order to increase its priority. Click the Follow button in order to get notified once any status changes occur.
Should you have further questions please let me know.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.