Ideal Image Size

2 posts, 0 answers
  1. David
    David avatar
    5 posts
    Member since:
    Sep 2015

    Posted 12 Oct 2018 Link to this post

    I was going to use the SlideView to show images.  What is the best image size to use?
  2. Lance | Technical Support Engineer, Principal
    Admin
    Lance | Technical Support Engineer, Principal avatar
    957 posts

    Posted 12 Oct 2018 Link to this post

    Hi David,

    This is entirely up to the target platform and even which device on that platform. Every device has a different pixel density and resolution.

    If you're looking for what the dimensions might be in the area, you could do a test like this and see the values for each platform:

    <telerikPrimitives:RadSlideView x:Name="SlideView" HorizontalContentOptions="Fill" VerticalContentOptions="Fill">
        <telerikPrimitives:RadSlideView.ItemTemplate>
            <DataTemplate>
                <Grid x:Name="TemplateRoot">
                    <StackLayout HorizontalOptions="Center" VerticalOptions="Center">
                        <Label Text="{Binding Width, StringFormat='Width: {0:N2}', Source={x:Reference TemplateRoot}}" />
                        <Label Text="{Binding Height, StringFormat='Height: {0:N2}', Source={x:Reference TemplateRoot}}" />
                    </StackLayout>
                </Grid>
            </DataTemplate>
        </telerikPrimitives:RadSlideView.ItemTemplate>
    </telerikPrimitives:RadSlideView>


    Downsampling

    If you want more control over the image's rendering, you could use a 3rd party image control to restrict the resolution of the image. A popular option is FFImageLoading, scroll down and read the Downsample properties in this documentation.


    If you have any trouble using images in the ItemTemplate, please open a support ticket here and attach your code so we can investigate directly.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top