Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1833
Drastically reduced image quality when using ImageBackgroundStyle.Stretched
posted

I want to place an image in each day in the month view. The image varies day to day. I want the image to scale with the form/size of day element, so I want to use ImageBackgroundStyle.Stretched.  However, this has such a radical affect on the quality of the image its a good as chocolate teacup.

I've tried with a whole range of image sizes and qualities. All get degraded to a blurr, as though I've provided a very small image. Not at all suitable for anything.

Maybe I'm missing something. Is there some compression setting that can be tweaked?

I'm using the following code...

Dim myImage As new System.Drawing.Bitmap("c:\image.png")
UltraCalendarLook1.GetDayLook(theDate, True).Appearance.ImageBackground = myImage
UltraCalendarLook1.GetDayLook(theDate, True).Appearance.ImageBackgroundStyle = ImageBackgroundStyle.Stretched

Thanks in advance!