×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    11

    Lightbulb distortion image

    Hello,

    First, I'm french, so, excuse my english ^^

    Well, I just want to know if someone have a function to distort image. Because in j2me a function like this doesn't exist.

    For example :
    Code:
    public image distortImage(Image _image, int _Pt1X, int pt1Y, int _Pt2X, int pt2Y, int _Pt3X, int pt3Y, int _Pt4X, int pt4Y)
    {
    ...........
    
    return newImage;
    }
    In fact, my image will be distort to be between the four points.

    Thank you for your help.

    ps: my english is horrible no? ^^

    Twub

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: distortion image

    Hi,

    Just found a thread related to this topic.

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    11

    Re: distortion image

    Hi,

    I know that j2me doesn't have this function.
    Maybe someone here know were I can find the function (manually alter the image pixel by pixel) ?

    Thx.

    Twub

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    11

    Re: distortion image

    Arf,

    You don't understand what i say...?

  5. #5
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: distortion image

    Personally, I don't know J2ME APIs that could suit your needs, but I think you could easily find J2SE APIs that make similar effects, and you could try porting them to J2ME..

    Pit

  6. #6
    Registered User
    Join Date
    May 2008
    Posts
    11

    Re: distortion image

    But, I don't know were I can find J2SE APIs for this function...

  7. #7
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    192

    Re: distortion image

    It's not very clear what you mean by "distort to be between the four points". Maybe you mean rescaling?
    Anyway, you can create your own image manipulation functions using getRGB / createRGBImage.

Similar Threads

  1. --- ???save image problem??? ---
    By ferenn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2007-10-01, 14:33
  2. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  3. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  4. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×