|
-
fitting jpg fullscreen smoothly
alright.. I'm trying to make photos stretch to fullscreen.. It works right now fine, but when the jpg isn't its natural size its all glitchy and looks like less quality where edges aren't as fine as they should be.
I have this:
if(stage.stageHeight-(HEIGHT*(stage.stageWidth/WIDTH))>0){
container.height=HEIGHT*((stage.stageHeight)/HEIGHT);
container.width=WIDTH*((stage.stageHeight)/HEIGHT);
}else{
container.width=WIDTH*((stage.stageWidth)/WIDTH);
container.height=HEIGHT*((stage.stageWidth)/WIDTH);
}
How can you do it so the edges are fine and perfect?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|