PNG question

Posted on 2005-05-08
Last Modified: 2010-04-06
I'm working with an app that uses a PNG as the frame for the app. What I don't get is that when I look at the png in P.S. it is a one piece  but when used in the app if the wiindow is resized, only certain parts of it stretch for the resizing??? How is this deteremined??? I want to make a replacement for this graphic. If I make it the same size will I be OK????
Question by:894359
    LVL 13

    Assisted Solution

    This is probably determined by the application itself, for example split the image file into 9 segments based on a pixel count, e.g.:

    Corner ------------- top border (stretch) ------------- Corner
    Side border(stretch)  --- center(stretch) --- Side border(stretch)
    Corner ------------- bottom border (stretch) ------------- Corner

    If this is the case then you can just replace the PNG with an image of the same size. However, I would test this first and determine the "split" points (i.e. where it goes from "corner" to "top border") by placing miscolored pixels in equdistant positions (eg every 3 pixels).
    LVL 17

    Accepted Solution

    Hi 894359,

    There's a chance that what you're seeing are several overlapping PNG images and not only one. When the window is resized only one of them is resized. The transparency that the PNG format supports is perfect for something like that.

    On the other hand, if what you see when opening the image in Photoshop resembles an interface skin then the app is taking chunks of it by specific coordinates and using them all over the interface.

    What I'd suggest is that you make a backup of all the original images and then start replacing them on by one to determine what image goes where.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
    Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
    Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now