Click here to Skip to main content
12,302,330 members (22,066 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#

I need to manipulate image files like in adobe phototshop.

Need to drag a 3D image of wig into a 3D photo of a person. I really dont have a clue of how this is done. Please help me.

The application is in Windows platform

Thnak you
Posted 6-Oct-12 4:15am
Edited 6-Oct-12 4:17am
Arun (Multithreaded) 6-Oct-12 10:25am
You have a big idea. But no idea?
BillWoodruff 7-Oct-12 0:30am
What exactly do you mean by a 3d image: a true wireframe based mesh or vector structure ? Or a 2d flattened bit-map of an originally 3d file ?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Basically, you need to have two images - the "background" one you are dragging onto, and a second one which is the wig.
I would suggest that you want to handle the Paint even of a panel or similar, and that you need to look at using the Graphics.DrawImage[^] method and also the Region[^] class for setting the area you want to draw the wig into.

This isn't a trivial job at all - you may want to look and see if you can find a basic graphics primer before you go too far.
BillWoodruff 7-Oct-12 0:31am
OG, I think until we know what the OP means by "3d" image here, we cannot conclude much except that the OP is "in way over his head" :)

best, Bill
OriginalGriff 7-Oct-12 4:05am
Hi Bill - it didn't have the "3D" bit in the question when I answered it! :laugh:

And I thought he was over his head when it was normal 2D images... :sigh:
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Try to download Paint.NET source code, probably in there you can find implementation of your effect.

On native Paint.NET site sources seems no longer available, I found link for downloading:[^]

BillWoodruff 7-Oct-12 0:35am
Paint.Net looks alive to me: as of October 2, 2012.

Until we know what the OP means by "3d" image here, I don't think we can answer them, and, to my knowledge Paint.Net, while offering "simulated 3d effects" on 2d bitmaps, never had any ability to import, and render, true 3d models.

So, I have voted your answer as #1.
Maxim Kartavenkov 7-Oct-12 4:21am
Paint.NET not offer source code any more - I didn't mention what it's not alive.
And if you are read proper his question - he mention "like in adobe photoshop".
Had you work with such things in photoshop before posting here you questions in comments?
So your comment seems not at right place. Plus making the vote of 1 my solution which can really helps, you just showing that you even not reading proper the question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160530.1 | Last Updated 6 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100