Image editor wanna join?

If your a member of codenstuff then this is the main place to be. Get together..talk..chat and ponder. Have fun. Chill out. Play games.
21 posts Page 2 of 3
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: Image editor wanna join?
Usman55
Add me:

Yahoo: usman_ramzan55@yahoo.com
Skype: usman55_skype
Image
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Re: Image editor wanna join?
smashapps
hey usman55 add me brodiewalton@hotmail.com
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Re: Image editor wanna join?
Cheatmasterbw
I am already working on my own image editor at the moment, but if any help is needed, you can PM me
http://www.megaapps.tk/
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Image editor wanna join?
MrAksel
smashapps wrote:
How are you going to use VB and C# in the same program?

I can help as well if you wish, such as doing 3D effects, (2D but look 3D), lines and shapes etc but I haven't really done imagery before.

If you wish, I will be on msn.
The main program will be in VB, but i will code a DLL that contains effects and such things, that DLL will be in C# because of the direct access to memory. So editing will be possible at high speed without using the terrible slow Get/SetPixel.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Re: Image editor wanna join?
mikethedj4
I don't recommend a custom GUI as a lot of users customize windows, and they choose a theme they like. Plus not everyone like custom themes, regardless how they look.

Also does the image editor have a name yet???
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Image editor wanna join?
mandai
Why do you need to use unsafe pointers? You can access regions of the bitmap in memory with Bitmap.LockBits, this can be done in VB.Net as well.
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Image editor wanna join?
MrAksel
mandai wrote:
Why do you need to use unsafe pointers? You can access regions of the bitmap in memory with Bitmap.LockBits, this can be done in VB.Net as well.
I know that, but you would then have to use the Marshal class, which increases the time used by just a little, and i want as high performance as available.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Image editor wanna join?
mandai
Using Marshal.Copy to read/write all the data to/from an array is quite fast actually.
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Image editor wanna join?
MrAksel
Okay, good. Can you find me a formula to get the 4 bytes of the color at for example X: 4 Y: 87 in the bitmap?
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Image editor wanna join?
mandai
You can use this offset to find a specific pixel in memory:
Code: Select all
(BitmapData.Scan0.ToInt32() + (BitmapData.Stride * y) + (x * 4))
You can remove the Scan0 part if you have loaded the data into an array beforehand. If the data is in an array you can use BitConverter.ToInt32 to store the pixel's bytes. This example will work if you are using a Format32bppArgb bitmap.
21 posts Page 2 of 3
Return to “Codenstuff boardroom”