|
|
Rank: Member Groups: Member
Joined: 5/2/2005 Posts: 5 Points: 0
|
i want to use it in c++ ,can you give me a sample thank you :)
|
|
Rank: Advanced Member Groups: Administration
, Member
Joined: 8/3/2003 Posts: 471 Points: 243
|
Hello, You can use Graphics Mill for .NET only in Visual C++ Managed Extensions. Here is an easy sample which illustrates text output: Code:
Aurigma::GraphicsMill::Bitmap __gc *pBitmap = __gc new Aurigma::GraphicsMill::Bitmap(
Aurigma::GraphicsMill::RgbColor::Yellow, 300, 300, Aurigma::GraphicsMill::PixelFormat::Format24bppRgb);
Aurigma::GraphicsMill::Drawing::GdiGraphics __gc *pGraphics = pBitmap->GetGdiGraphics();
Aurigma::GraphicsMill::Drawing::Font __gc *pFont = __gc new Aurigma::GraphicsMill::Drawing::Font(S"Arial", 20);
Aurigma::GraphicsMill::Drawing::SolidBrush __gc *pBrush = __gc new Aurigma::GraphicsMill::Drawing::SolidBrush(
Aurigma::GraphicsMill::RgbColor::Black);
try
{
pGraphics->DrawString(S"Aurigma Graphics Mill for .NET", pFont, pBrush, 10, 30);
}
__finally
{
pGraphics->Dispose();
pFont->Dispose();
}
pBitmap->Save(S"c:/1.png");
pBitmap->Dispose();
Don't forget to add reference to Aurigma.GraphicsMill.dll to your Visual C++ Managed Extension project.
Sincerely yours, Dmitry Sevostjanov.
|
|
Rank: Member Groups: Member
Joined: 5/2/2005 Posts: 5 Points: 0
|
can i use Graphics Mill for .NET in vc6
|
|
Rank: Advanced Member Groups: Administration
, Member
Joined: 8/3/2003 Posts: 471 Points: 243
|
Graphics Mill for .NET is intended for .NET-compatible languages (e.g. VB.NET, C#, VC++ME), unfortunately VC6 is not .NET-compatible language. VC++ Managed Extensions for the first time was included in Microsoft Visual Studio.NET (7.0). But you can use our Graphics Mill for ActiveX in VC6.
Sincerely yours, Dmitry Sevostjanov.
|
|
|
Guest |