|
|
Rank: Member Groups: Member
Joined: 5/2/2005 Posts: 5 Points: 0
|
i want to get a detail sample :)
|
|
Rank: Advanced Member Groups: Administration
, Member
Joined: 8/3/2003 Posts: 500 Points: 330
|
What functionality do you want to see in the detailed sample?
Sincerely yours, Dmitry Sevostjanov.
|
|
Rank: Member Groups: Member
Joined: 5/2/2005 Posts: 5 Points: 0
|
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?
|
|
 Rank: Advanced Member Groups: Administration
, Member
Joined: 8/2/2003 Posts: 708 Points: 105
|
> 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. Sincerely yours, Andrew Simontsev from Aurigma Team
|
|
Rank: Member Groups: Member
Joined: 5/2/2005 Posts: 5 Points: 0
|
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
|
|
 Rank: Advanced Member Groups: Administration
, Member
Joined: 8/2/2003 Posts: 708 Points: 105
|
> //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:
- 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.
- Get a pointer to the pixel data using objBitmap.Data.Scan0 property.
- 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. Sincerely yours, Andrew Simontsev from Aurigma Team
|
|
|
Guest |