when i assign this bitmap to the view frame, the scaled output is like
It seems that it does not scale in the vertical. If i disable vertical scaling the output is ok but it cannot be taller than the height of the assigned bitmap.
Actually this image is scaled in qml without a problem..
Resources::ButtonGray for instance does scale nicely but it does not have any gradient in the interior.
(but actually i want a gradient but i don't know how i can add it as an overlay)
Thanks for a hint, maybe i should not use a gradient in the image, which would be ok if i knew a straight forward method to add a gradient (or make
colorTL,TR,BL,BR work too....
let me refer to the documentation of the Frame view and the 9-slice image scaling.
The resizing of the image is not done by scaling (which is quite slow on many targets) it is done by repetition of the different slices.
This means, when you stretch an image with a gradient in vertical direction, the inner part of the gradient is drawn several times until the desired height is reached. As a result you get this steps within the gradient.
If you really want to scale an image, you can use the property Alignment of the Image view. Please be aware, that scaling is not hardware accelerated on many targets (e.g. MCUs) - same as with qml ;-)
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!