Eclipse/Image error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blackraven1425
    New Member
    • Mar 2008
    • 27

    #1

    Eclipse/Image error

    On Eclipse, I've been getting this error that the method getScaledInstan ce is undefined for type String, but I'm not using Strings, rather 3 ints. Any idea on how to remove this error?

    Image pic2 = pic.getScaledIn stance(640, 480, Image.SCALE_SMO OTH);


    **EDIT** NVM, dumb mistake.
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    It sounds like the error is that the "pic" object is a String and String class does not have a "getScaledInsta nce()" method. Can you provide the reset of the relevant code in question?

    Also when posting code please use code tags.

    Comment

    Working...