Page 2 of 3

Re: Image editor wanna join?

Posted: Thu Jun 30, 2011 2:53 pm
by Usman55
Add me:

Yahoo: usman_ramzan55@yahoo.com
Skype: usman55_skype

Re: Image editor wanna join?

Posted: Thu Jun 30, 2011 3:01 pm
by smashapps
hey usman55 add me brodiewalton@hotmail.com

Re: Image editor wanna join?

Posted: Thu Jun 30, 2011 3:02 pm
by Cheatmasterbw
I am already working on my own image editor at the moment, but if any help is needed, you can PM me

Re: Image editor wanna join?

Posted: Thu Jun 30, 2011 3:15 pm
by 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.

Re: Image editor wanna join?

Posted: Thu Jun 30, 2011 5:47 pm
by 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???

Re: Image editor wanna join?

Posted: Thu Jun 30, 2011 5:59 pm
by 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.

Re: Image editor wanna join?

Posted: Thu Jun 30, 2011 6:05 pm
by 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.

Re: Image editor wanna join?

Posted: Thu Jun 30, 2011 6:28 pm
by mandai
Using Marshal.Copy to read/write all the data to/from an array is quite fast actually.

Re: Image editor wanna join?

Posted: Thu Jun 30, 2011 7:05 pm
by 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?

Re: Image editor wanna join?

Posted: Fri Jul 01, 2011 12:15 am
by 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.