Stretched and tiled give different effects
Posted: Tue Dec 19, 2006 19:20
Gentlemen,
I have the following problem. I'm trying to skin a button using a number of 1 pixel wide images.
Specifically, the 4 corners are 2x2, the top and bottom edges are 1x2, the left and right edges are 2x1 and the background is 1x1.
The problem I have is that if I set the HorztFormat and VertFormat to Stretched, the background appears as a very pale, transparent "smear" over the surface of the button. The "color intensity" also appears to be modulated, with the middle of the control being about the color I want, and the colour fading to transparent towards the edges.
(The edges also are inconsistent in colour.)
If I set the formatting to Tiled, I get the look I desire (a uniform color) but performance goes way, way down. The whole thing runs so slowly that it's unusable. Otherwise I'd just Tile and be done.
I'm hoping someone can tell me what I'm doing wrong, and how to fix it. (My initial thought was that the single pixel is somehow being antialiased with an alpha channel. I do note that the source image, not supplied by me, contains an alpha component.)
Thanks in advance.
My apologies for asking a newbe question
I have the following problem. I'm trying to skin a button using a number of 1 pixel wide images.
Specifically, the 4 corners are 2x2, the top and bottom edges are 1x2, the left and right edges are 2x1 and the background is 1x1.
The problem I have is that if I set the HorztFormat and VertFormat to Stretched, the background appears as a very pale, transparent "smear" over the surface of the button. The "color intensity" also appears to be modulated, with the middle of the control being about the color I want, and the colour fading to transparent towards the edges.
(The edges also are inconsistent in colour.)
If I set the formatting to Tiled, I get the look I desire (a uniform color) but performance goes way, way down. The whole thing runs so slowly that it's unusable. Otherwise I'd just Tile and be done.
I'm hoping someone can tell me what I'm doing wrong, and how to fix it. (My initial thought was that the single pixel is somehow being antialiased with an alpha channel. I do note that the source image, not supplied by me, contains an alpha component.)
Thanks in advance.
My apologies for asking a newbe question