Find Jobs
Hire Freelancers

8 fitted pictures inside the circle

$250-1000 USD

In Progress
Posted about 3 years ago

$250-1000 USD

Paid on delivery
Hello, I simply have a circle, squared UIView with side size of x and corner radius x/2. Additionally I also have 8 png UIImage's with different sizes. What do I need to have? I need to have a function with array of images as parameter. That function draws delivered images and create and return new UIImage along with all properties for every image (x, y, width, height, rotation). Requirements (OBLIGATORY): - all images should fill circle as much as possible (if there is enough space to make any image significantly bigger, then it is wrong) - space between them and between edge of the circle should be acceptable and just nice;) - position of any image within circle should be randomly generated. - every image should have randomly changed size. - rotation of any image should be randomly generated - every image should preserve its ratio. - every image should not be greater than A value, and should not be smaller than B value (A and B always is related and compared to the longest side of rectangle). In other words minimum size of the image cannot be less than A, and maximum cannot be greater than B. - images (not empty pixels in png files) cannot be placed over another images even partly. - A lot of images will be placed as PNG images. Often png image has a lot of pixels which are transparent. While you create algorithm for this, consider empty pixels as a free space to fulfill with any other image. - rendering 60 sets of images from 8 images for every set should take between 1-2 seconds, not more. If you do not fully understand what I mean, please ask. I will accept the project once all requirements will be filled;-) Thank you. Example of how it should look like and how it should not I will send you in private message only if you know how to do this. ``class ImageCoordinate { //in coordinate system of the card var x: Double // center position x var y: Double // center position y var w: Double // width var h: Double // height var r: Double // rotation init(x: Double, y: Double, w: Double, h: Double, r: Double) { self.x = x self.y = y self.w = w self.h = h self.r = r } } class CardImage { let cardImage: UIImage //final card image let coordinates: [ImageCoordinate] //coordinates for every single image in coordinate system of the card, order of coordinates in the same order as images was passed to the init. var positions: [[String: Double]] { var values = [[String: Double]]() for coordinate in coordinates { var value = [String: Double]() value[CenterXKey] = coordinate.x value[CenterYKey] = coordinate.y value[WidthKey] = coordinate.w value[HeightKey] = coordinate.h value[RotationKey] = coordinate.r [login to view URL](value) } return values } init(image: UIImage, coordinates: [ImageCoordinate]) { [login to view URL] = image [login to view URL] = coordinates } } class ImageCreator { private let radius: CGFloat //size of the circle private let backgroundColor: UIColor //color for background of the card private let minimumImageWidthHeight: CGFloat //maximum value for image height, minimum private let maximumImageWidthHeight: CGFloat init(radius: CGFloat, backgroundColor: UIColor, minimumImageWidthHeight: CGFloat, maximumImageWidthHeight: CGFloat) { [login to view URL] = radius [login to view URL] = backgroundColor [login to view URL] = minimumImageWidthHeight [login to view URL] = maximumImageWidthHeight } func card(from images: [UIImage]) -> CardImage { //.. here I am going to use your alhgorthm written in C (I suppose it is best idea, but doesnt have to) in Swift } } ``
Project ID: 29481116

About the project

8 proposals
Remote project
Active 3 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
hi, this is Nasir Mehmood. I am a software engineer and have more than 20 years of development experience in embedded systems, database design, web design, graphics, and mobile applications. i have extensive knowledge of working with assembly, c, c++,vc++ .net,Objective C,C#, Swift, java and vb .net. I have gone through the details of your [login to view URL] sort of utilities always needs to have low-level access and for this purpose, Xcode objective C, Swift with C++ integration is the best choice for a nice GUI and better functionality. I have fully grasped these tools. so I offer you my expertise for your solution. if you are interested in working with me then feel free to contact me for further details. thanks
$1,000 USD in 25 days
3.7 (10 reviews)
4.9
4.9
8 freelancers are bidding on average $606 USD for this job
User Avatar
Hi there, ★★★ C / C++ Expert ★★★ 10+ Years of Experience ★★★ I've read requirements and ready to build a function with array of images as parameter. I have strong grasp on Object-Oriented Programming along with excellent analytical and program-solving skills. What we can do but not limited to: ✔️ Debugging & Solving Problems ✔️ Pointers ✔️ Abstract Classes and Objects ✔️ Constructors and Destructors ✔️ Operator Overloading ✔️ Inheritance, Polymorphism ✔️ Data structures (DSA) ✔️ Functions Overriding and Overloading ✔️ File handling, Streams ✔️ Algorithm Analysis ✔️ Linked Lists ✔️ Stacks and Queues ✔️ Recursion Development Tools: Visual Studio, Code Blocks, Dev c++, Turbo, Netbeans, Eclipse etc I'll be glad to discuss project before start so let's chat. Thanks for your consideration. Best Regards, TechPlus Team
$750 USD in 4 days
4.5 (13 reviews)
5.6
5.6
User Avatar
Hi , Awesome Got your requirement you want 8 fitted pictures inside the circle We have developed more than 2000+ android apps and 5000+ websites and we are committed to time and will do in the budget thanks
$250 USD in 7 days
4.7 (22 reviews)
4.3
4.3
User Avatar
Hi, there. I'm a C/C++ & Algorithm expert with over 7 years of experience. I just read your post carefully and understood your requirements fully. I want to work with wonderful client like you. Please ping me and discuss this in detail. Thanks. isabelle
$600 USD in 10 days
5.0 (1 review)
3.1
3.1
User Avatar
Hi, I can develop it. I will develop it with flutter. I have rich experience about that. I will share the similar app via chatting. Regards Jose
$500 USD in 5 days
5.0 (1 review)
2.8
2.8
User Avatar
Hello, I will create the demo code for alignment of 8 images in the circle. I am a professional iOS developer specialized in Swift. I am really interesting. Please discuss further. Thanks Imad
$750 USD in 6 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello! Do you need it on Swift? Can you show how it should look like and how png images will look like (how complex their shapes)? Best Regards Roman
$500 USD in 10 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of POLAND
Krakow, Poland
5.0
3
Member since Jul 13, 2020

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.