ImageEditor + RadUpload

5 posts, 0 answers
  1. Alex
    Alex avatar
    54 posts
    Member since:
    Feb 2009

    Posted 20 Nov 2014 Link to this post

    I need to combine the ImageEditor with RadUpload so that ImageEditor would have an Upload Button similar to Save Button, just instead of saving the image, it would upload it to a preconfigured Web site.

    The workflow would be like this:
    1. In ImageEditor, use Open to open an image
    2. Edit the image anyway you like it (i.e. crop it)
    3. Without saving the image, click on Upload Button and have the edited image uploaded with upload progress showing.

    How do I go about it?

    Additional question, how do I add capture from WebCam, in addition to Open Button?


    Thanks
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 21 Nov 2014 Link to this post

    Hello Alex,

    There is an example very similar to your requirements in our SDK repository. You can either navigate to the Rad Upload Integration demo with the SDK Samples Browser or browse the code directly in GitHub.

    As to taking a capture, you can try using the GetAvailableVideoCaptureDevices() method to obtain the device and call the Start() method of the capture source. Note that due to Silverlight's security policy you'd need to request access from the user first.

    I hope this helps.

    Regards,
    Petya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Alex
    Alex avatar
    54 posts
    Member since:
    Feb 2009

    Posted 05 Dec 2014 in reply to Petya Link to this post

    I want to upload the image as a jpg file. I can use JpegFormatProvider but I do not see how to configure the desired jpg settings, like quality? What is the default quality setting?
  5. Alex
    Alex avatar
    54 posts
    Member since:
    Feb 2009

    Posted 05 Dec 2014 Link to this post

    I am getting "Specified method is not supported." error when I try to use 

    JpegFormatProvider jpg = new JpegFormatProvider();
     jpg.Export(radImageEditor.ImageEditor.Image, stream);

  6. Todor
    Admin
    Todor avatar
    168 posts

    Posted 10 Dec 2014 Link to this post

    Hello Alex,

    In Silverlight the export functionality is not available for the JpegFormatProvider. You can refer to the RadImageEditor's Import/Export help article for more information on that matter.

    If you have further questions, please get back to us.

    Regards,
    Todor
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner