Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
wangting  
#1 Posted : Wednesday, May 4, 2005 8:47:00 PM(UTC)
wangting

Rank: Member

Groups: Member
Joined: 5/1/2005(UTC)
Posts: 5

i want to get a detail sample :)
Dmitry  
#2 Posted : Wednesday, May 4, 2005 9:32:00 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
What functionality do you want to see in the detailed sample?
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
wangting  
#3 Posted : Wednesday, May 4, 2005 10:51:00 PM(UTC)
wangting

Rank: Member

Groups: Member
Joined: 5/1/2005(UTC)
Posts: 5

hello i have been write a soft to edit image in visual vc++6.0.
today i install visuall.net.i don't know what is Visual C++ Managed Extensions
is it very diffent with visuall c++6.0?
can i insert graphics mill in my old code?
how about the speed in run Mill for ActiveX in VC6.run speed very import to me .
and i want to have curve control function which is in ActiveX?
Andrew  
#4 Posted : Wednesday, May 4, 2005 11:14:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
> hello i have been write a soft to edit image in visual vc++6.0.
today i install visuall.net.i don't know what is Visual C++ Managed Extensions
is it very diffent with visuall c++6.0?


It differs. It has modifications in syntax, and it does not support certain features of standard C++ (e.g. it does not support templates). If you already have a ready VC6 project, it is not possible to import it into Managed C++. So you have to write this application from a scratch. In fact it would be better to write it on C# or VB.NET.

Also, it will mean that your application will require .NET Framework to be installed.

> can i insert graphics mill in my old code?

Since you will not be able to compile your old code with Managed Extensions, the answer is no. The only option is to use ActiveX version.

> how about the speed in run Mill for ActiveX in VC6.run speed very import to me .

The speed of ActiveX version is slightly higher than the speed of the .NET version.

> and i want to have curve control function which is in ActiveX?

Graphics Mill 2.0 (ActiveX) does not have Curves effect. However since you have a direct access to pixels, you can implement this function manually. It is not difficult.
wangting  
#5 Posted : Thursday, May 5, 2005 2:49:00 AM(UTC)
wangting

Rank: Member

Groups: Member
Joined: 5/1/2005(UTC)
Posts: 5

thank you for you answer
1The speed of ActiveX version is slightly higher than the speed of the .NET version.
//the ActiveX version is faster than .NET version.right?
2.Graphics Mill 2.0 (ActiveX) does not have Curves effect. However since you have a direct access to pixels, you can implement this function manually. It is not difficult.
//you means i write curve adj by myself code?can you give me some advice?
3.can i get full sample about Graphics Mill 2.0 (ActiveX) for vcc6.0
Andrew  
#6 Posted : Thursday, May 5, 2005 11:06:00 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
> //the ActiveX version is faster than .NET version.right?

In general, yes. Some certain operations were optimized in GM 3.0, but mostly the performance of GM 2.0 is higher (not dramatically, though).

> //you means i write curve adj by myself code?can you give me some advice?

You should implement the look-up table approach. You can read how it works in the Aurigma.GraphicsMill.Transforms.Lut class description. Graphics Mill 2.0 has not such class too, but it is not a problem to implement it.

In brief, the algorithm is a following:
  1. Convert points that specify the curve to the look-up table (in other words, turn from the analytic form of function definition to the tabular one). As a result you will get an array of 256 elements, each Nth element specifies a function value for the pixel intensity = N.
  2. Get a pointer to the pixel data using objBitmap.Data.Scan0 property.
  3. Iterate through each byte and replace its value by the value from the look-up table in a similar way: pixel[i, j] = LUT[pixel[i,j]];
An important notice: you should check the pixel format of the bitmap. If it is an indexed bitmap, such kind of algorithm cannot be used.

> 3.can i get full sample about Graphics Mill 2.0 (ActiveX) for vcc6.0

Are you using MFC or something like that?

P.S. Since all said above relates Graphics Mill 2.0, it is better to continue its discussions in the Graphics Mill 2.0 forum.

Edited by user Tuesday, January 1, 2008 4:59:45 AM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.