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
5549
Ultralabel and resize Image
posted

Hi, i load at runtime to a ultralabel a new image

lbltitel.Appearance.Image = Image.FromFile(sCompanyLogo_Titellogo_Filename)

 

' lbltitel.Appearance.Image.size = New System.Drawing.Size(125, 39)

now i want to resize the image , currently the size is 39,39 . but i cannot change the size to another one.
could anyone help me?

Parents
  • 469350
    Suggested Answer
    Offline posted

    The UltraLabel does not stretch images, as far as I know. You would probably have to load your image into a Bitmap and then resize it yourself. In fact, I think there is an overload of the constructor for the Bitmap class which takes in an original image and a new size.

Reply Children