Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

graphics programming

i need the lines of code for the following algorithms.

flat fill
body fill
ellipse
morphing
scaling
rotation
translation
0
khansaquib
Asked:
khansaquib
  • 2
  • 2
  • 2
  • +2
1 Solution
 
Mayank SAssociate Director - Product EngineeringCommented:
This is not a homework site.
0
 
funvillCommented:
+ you did not give us much information on how to help you

what language ?
....
..
.
0
 
Harisha M GCommented:
Graphics Programming in .... ? (C/C++/VC++ or others)
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
khansaquibAuthor Commented:
c or c++
0
 
mmusanteCommented:
Translation :
x1 = x + xt
y1 = y + yt

Scaling :
x1 = (x-x0)*fx + x0
y1 = (y-y0)*fy + y0

where (x,y) = original point
          (x1,y1) = new point
          (x0,y0) = scaling center point
          fx, fy = scaling factors
          xt, yt = translation offsets
0
 
mmusanteCommented:
for a more general approach to translation-scaling-rotation take a look here ...

http://www.engineeringsurveyor.com/transformations.htm
0
 
khansaquibAuthor Commented:
'Hi

Ive made the code in VB and its working well. Thanx for your help. I want this question to be closed.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
You said that you want to do this in C/ C++. So the experts gave you help for that. Then you said that you did it in VB. That's not the correct thing to say, is it? You should've told us initially, that a VB solution was also fine with you.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now