Remove Save and Open open from RadImageEditorUI

14 posts, 0 answers
  1. Hema
    Hema avatar
    9 posts
    Member since:
    Feb 2015

    Posted 10 May Link to this post

    Hi,

     

    I want to modify the RadImageEditorUI controls placement and remove some icons form controls. can you any one tell me how to remove File open and save control ?

     

    Regards

    Hema

  2. Todor
    Admin
    Todor avatar
    168 posts

    Posted 12 May Link to this post

    Hi Hema,

    Thank you for your interest in RadImageEditor.

    To remove those buttons from the UI, you could set the IsOpenButtonVisible and IsSaveButtonVisible properties of the RadImageEditorUI to false.

    I hope this helps.
    If you need further assistance, please get back to us again.

    Regards,
    Todor
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Hema
    Hema avatar
    9 posts
    Member since:
    Feb 2015

    Posted 12 May in reply to Todor Link to this post

    Hi Totor,

    Thanks for your reply :)

    How to call save image functions from image editor in code behind?

     

    Regards

    Hema

  5. Todor
    Admin
    Todor avatar
    168 posts

    Posted 13 May Link to this post

    Hi Hema,

    You could invoke the RadImageEditorUI.SaveCommand's Execute() method. More about commands and tools, you could check in this help article. For example:
    this.ImageEditorUI.SaveCommand.Execute(null);

    I'll be glad to assist your further, if you have further questions.

    Regards,
    Todor
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. Chaithika
    Chaithika avatar
    3 posts
    Member since:
    Aug 2014

    Posted 17 May Link to this post

    hi,

    but how to hide the undo and redo buttons? 

    Regards

    chaithika

  7. Todor
    Admin
    Todor avatar
    168 posts

    Posted 19 May Link to this post

    Hi Chaithika,

    Since there isn't an out-of-the-box way to hide the Undo and Redo buttons from the RadImageEditorUI's header, you should edit its template and to remove them from there. 

    More about editing styles, you could read in this help article.

    Regards,
    Todor
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  8. fff
    fff avatar
    2 posts
    Member since:
    Jun 2016

    Posted 01 Jul in reply to Todor Link to this post

    Hi Todor,

    This command is doing a kind of "saveAS" (=asking user for the place & for the extension)

    Is there a simple way to just save, without question for better ergonomy speed for user.

    It means the same format & location as it was open

     

    Thanks in advance for detailed(Teleril beguinner) explanation,

    F

  9. Todor
    Admin
    Todor avatar
    168 posts

    Posted 06 Jul Link to this post

    Hi Fabrice,

    In your scenario, you could use directly the format provider which corresponds to the image's file format instead of using the default SaveImageCommand which has a kind of "Save As" behavior as you already found out. You can check the Import/Export help article for more information on that matter.

    I'll be glad to assist you further, if you have more questions.

    Regards,
    Todor
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  10. Mohammed
    Mohammed avatar
    3 posts
    Member since:
    Sep 2016

    Posted 19 Sep Link to this post

    Hi Team,

          I am using RadImageEditorUI and RadBarcodeQR in one of my application for WPF without MVVM. I have below concerns please assist me on this how to proceed further.

    1) Telerik RadImageEditorUI: 
    a. We don’t to show any dialog to provide path where to save, it has to be stored for default path what we provide in code-behind.
    b. Pass System.Windows.Controls.Image to RadImageEditorUI as a Parameter from one Window to another Window.
    2) Telerik QRCode printing under YMC (Yellow, Magenta and Cyan) and it is printing as color it should print on K (Black) panel without any color.

    Waiting for your Quick response.

    Thanks for your Cooperation and Support in advance

    Regards

    Mohammed Suhail

  11. Tanya
    Admin
    Tanya avatar
    405 posts

    Posted 21 Sep Link to this post

    Hello Mohammed,

    I'll go straight to your questions:

    1) RadImageEditorUI:
    a. You could use the import/export functionality of the RadImageEditor as I've suggested in the previous post. To remove the save button from the UI, you could set the IsSaveButtonVisible property of the RadImageEditorUI to false.
    b. About passing data between your ViewModels, you could check the following articles: 2) RadBarcodeQR
    If I have correctly understood your question, you want to change the colors of the RadBarcodeQR control. Basically, the RadBarCodeQR code is a little different when it comes to the styling of colors. Internally, it utilizes a WritableBitmap to render the control. Thus, the color setting is ignored. This is a bug and it is already logged in our Feedback Portal where you can track its progress and vote for its implementation. 

    Regards,
    Tanya
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  12. Mohammed
    Mohammed avatar
    3 posts
    Member since:
    Sep 2016

    Posted 23 Sep in reply to Tanya Link to this post

    Hi Tanya,

    Thanks for the mail and information provided for my concerns.

    I have referred the import/export functionality of RadImageEditor UI in that exporting of Image is happening through SaveDialog. I dont want to Show any Dialog for Saving Image to folder it should save in local path I have mention in code behind.

    I have made IsSaveButtonVisible to false and i have taken one Button and implemented Export Functionality in that click event it is saving the image as it is. I need to save the modified Image with Crop, Resize, Brightness and etc.. into local folder without SaveDialog.

    Thanks for your Support in advance.

    Regards

    Mohammed Suhail

  13. Nikolay Demirev
    Admin
    Nikolay Demirev avatar
    103 posts

    Posted 27 Sep Link to this post

    Hi Mohammed,

    If I have understand you correctly you have implemented the export in your own button, but it still uses SaveFileDialog and you want to specify the file path in your code.

    You can achieve this by opening the file stream not using the dialog, but the following code snippet instead:
    using(Stream stream = File.OpenWrite("path to the file"))
    {
         provider.Export(image, stream);
    }

    I hope this helps.
     
    Regards,
    Nikolay Demirev
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  14. Mohammed
    Mohammed avatar
    3 posts
    Member since:
    Sep 2016

    Posted 28 Sep in reply to Nikolay Demirev Link to this post

    Hi Nikolay Demirev,

        Thanks for your reply. I have used the code snippet what you have sent and implemented in my application. It is saving the original image without any modified changes like Crop, Brightness, Contrast, Resize etc.., applied for RadImageEditorUI Image, I want to save the modified image with the code snippet what you have provided.

    I am using the below code to Load image on RadImageEditor

     private void AddImageInEditor(string ImagePath)
            {
                    Stream stream = new FileStream(ImagePath, FileMode.Open, FileAccess.Read);
                    IImageFormatProvider formatProvider = ImageFormatProviderManager.GetFormatProviderByExtension(".png");
                    this.ImageEditorUI.Image = formatProvider.Import(stream);

           }

    I am using Below code what you have sent to Save in local path

    private void ExportImage()
            {
                IImageFormatProvider formatProvider = ImageFormatProviderManager.GetFormatProviderByExtension(".png");
                using (Stream stream = File.OpenWrite(System.Windows.Forms.Application.StartupPath + "\\Images\\Captured11.png"))
                {
                    formatProvider.Export(this.ImageEditorUI.Image, stream);
                }
            }

    Thanks for your Support in Advance.

    Regards

    Mohammed Suhail

  15. Nikolay Demirev
    Admin
    Nikolay Demirev avatar
    103 posts

    Posted 30 Sep Link to this post

    Hello,

    You might have to commit the changes to the tool you use. In the last example on this help article will help you do that.

    Regards,
    Nikolay Demirev
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready