3 Answers, 1 is accepted
RadImageEditor for WPF provides support for TIFF/TIF images from 2015 Q3 release. So, it is normal a tiff image to not be imported at all in previous versions.
If you are using a custom image provider, the issue might be caused by that exact image, or because of an issue in the implementation. However, it will be much easier for us to investigate and find what might be the issue if you send a sample demo project with the corresponding image attached where the issue is reproduced.
Looking forward to your reply.
Regards,
Todor
Telerik
Hi Todor,
I am not using Custom Image Editor.
I also attached TIF image preview in Image Photo Viewer and Rad Image Editor.
I am currently able to view first page of the multipage TIF file in image editor in my version 2014.1.331.40
My MainWindow.xaml file is:
<Window x:Class="TiffViewer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Title="MainWindow" Height="350" Width="525" WindowState="Maximized">
<Grid>
<telerik:RadImageEditorUI x:Name="ridImage">
</telerik:RadImageEditorUI>
</Grid>
</Window>
and My MainWindow.xaml.cs file is:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace TiffViewer
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.Loaded += MainWindow_Loaded;
}
void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
try
{
Stream imageStreamSource = new FileStream("multipage_tiff_example.tif", FileMode.Open, FileAccess.Read, FileShare.Read);
ridImage.Image = new Telerik.Windows.Media.Imaging.RadBitmap(imageStreamSource);
}
catch (Exception _Exception)
{
MessageBox.Show(_Exception.Message.ToString());
}
}
}
}
Is there any option by which I can show TIF image file as like Window Photo Viewer or any other option and can I edit it in Image Editor?
Thanks
In the current version of RadImageEditor, the manipulation of multipage Tiff images is not available. This means you should create your own Tiff image format provider which handles such tiff images. Further, you should edit the editor's template in a way such files to be rendered.
I hope this guidance help you to achieve the desired goal.
Regards,
Todor
Telerik