Find Jobs
Hire Freelancers

read a fixed point integer in java

$10-30 USD

Completed
Posted over 10 years ago

$10-30 USD

Paid on delivery
I am trying to read path points in Abobe Photoshop File, which are recorded as fixed point numbers defined here: [login to view URL] Does anyone know how to read them using Java. I am on windows. Path points All points used in defining a path are stored in eight bytes as a pair of 32-bit components, vertical component first. The two components are signed, fixed point numbers with 8 bits before the binary point and 24 bits after the binary point. Three guard bits are reserved in the points to eliminate most concerns over arithmetic overflow. Hence, the range for each component is 0xF0000000 to 0x0FFFFFFF representing a range of -16 to 16. The lower bound is included, but not the upper bound. This limited range is used because the points are expressed relative to the image size. The vertical component is given with respect to the image height, and the horizontal component is given with respect to the image width. [ 0,0 ] represents the top-left corner of the image; [ 1,1 ] ([ 0x01000000,0x01000000 ]) represents the bottom-right. In Windows, the byte order of the path point components are reversed; you should swap the bytes when accessing each 32-bit value. I have used this code, int n = [login to view URL](); n = [login to view URL](n); [login to view URL](n / [login to view URL](2, 24)); but it doesn't work correctly.
Project ID: 5238292

About the project

6 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!Ready, to start!
$40 USD in 1 day
4.1 (15 reviews)
4.8
4.8
6 freelancers are bidding on average $33 USD for this job
User Avatar
I am a professional software engineer with 9+ years of experience. I am very talented programmer with the following skills c, c++ , java , UNIX, Linux,SSH, PHP, Jsp , Js , advanced js like jquery, extjs etc. My skill set and experience are best suitable for your requirement. Please assign this task to me I will make sure your work will be completed to your full satisfaction.
$25 USD in 1 day
5.0 (1 review)
0.4
0.4
User Avatar
I have a lot of experience in reading many different forms of data input from streams, including custom formats such as this. Code will be supplied to read the Fixed Point numbers on successful award.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am a Computer Engineer, almost fresh out of college, and achieved a B.S in Computer Engineering from Marquette University, graduated with around 3.6 GPA. I handled many projects in my education, mostly revolving around Java. These projects has made me develop my skills into into Android, SQL, and implementation of embedded systems with C/C++. I am also quite proficient in MATLAB/Mathematica if need be.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Dear Sir, We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Looking forward to hear from you soon - GOD Bless You.
$54 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of FINLAND
Turku, Finland
5.0
61
Payment method verified
Member since Nov 22, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.