Hi everyone
i have photo gallery with xml and it work perfect for me but i have simple problem :cry3: like when i resizing my images by stage width or height my images pixelate can any one please help me why the pictures are pixelate?
i am using this code for resizing
[COLOR=Blue]if[/COLOR] (imageHolder.mainImage.[COLOR=Blue]_height[/COLOR] > [COLOR=Blue]Stage.height[/COLOR]) {
imageHolder.mainImage.[COLOR=Blue]_width[/COLOR] = [COLOR=Blue]Stage.width[/COLOR];
imageHolder.mainImage.[COLOR=Blue]_yscale[/COLOR] = imageHolder.mainImage.[COLOR=Blue]_xscale[/COLOR];
}
[COLOR=Blue]if[/COLOR] (imageHolder.mainImage.[COLOR=Blue]_height[/COLOR] <= [COLOR=Blue]Stage.height[/COLOR]) {
imageHolder.mainImage.[COLOR=Blue]_height[/COLOR] = [COLOR=Blue]Stage.height[/COLOR];
imageHolder.mainImage.[COLOR=Blue]_xscale[/COLOR] = imageHolder.mainImage.[COLOR=Blue]_yscale[/COLOR];
}
[COLOR=Blue]if[/COLOR] (imageHolder.mainImage.[COLOR=Blue]_width[/COLOR] < [COLOR=Blue]Stage.width[/COLOR]) {
imageHolder.mainImage.[COLOR=Blue]_width[/COLOR] = [COLOR=Blue]Stage.width[/COLOR];
imageHolder.mainImage.[COLOR=Blue]_yscale[/COLOR] = imageHolder.mainImage.[COLOR=Blue]_xscale[/COLOR];
}
Please my project in last mode i have to submit with tomorrow otherwise i will lost a opportunity :cry3::cry3::cry3::cry3::cry3::cry3::cry3::cry3::cry3:
Please