Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hello,
 
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
v3
Comments
Arun (Multithreaded) at 6-Oct-12 10:25am
   
You have a big idea. But no idea?
BillWoodruff at 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
good
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.
  Permalink  
Comments
BillWoodruff at 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 at 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
good
Please Sign up or sign in to vote.

Solution 2

Hello,
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:
 
http://tanyoivanov.wordpress.com/2012/04/23/paint-net-3-5-source-code/[^]
 
Regards,
Maxim.
  Permalink  
Comments
BillWoodruff at 7-Oct-12 0:35am
   
Paint.Net looks alive to me: http://blog.getpaint.net/ 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 at 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
0 OriginalGriff 410
1 Gihan Liyanage 338
2 ChauhanAjay 180
3 Vinay Mistry 160
4 Sergey Alexandrovich Kryukov 138
0 Sergey Alexandrovich Kryukov 9,011
1 OriginalGriff 7,941
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 6 Oct 2012
Copyright © CodeProject, 1999-2014
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