Forums

Welcome Guest Search | Active Topics | Members

how can i start it in c++ Options
wangting
Posted: Wednesday, May 04, 2005 12:16:00 AM
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 :)
Dmitry
Posted: Wednesday, May 04, 2005 12:49:00 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 500
Points: 330
Hello,

You can use Graphics Mill for .NET only in Visual C++ Managed Extensions. Here is an easy sample which illustrates text output:
Code:
// Create bitmap and graphics instances.
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();

// Create objects which are used during text output.
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
{
      // Text output.
      pGraphics->DrawString(S"Aurigma Graphics Mill for .NET", pFont, pBrush, 10, 30);
}
__finally
{
      pGraphics->Dispose();
      pFont->Dispose();
}
// Save bitmap to file.
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.
wangting
Posted: Thursday, May 05, 2005 5:00:00 AM
Rank: Member
Groups: Member

Joined: 5/2/2005
Posts: 5
Points: 0
can i use Graphics Mill for .NET in vc6
Dmitry
Posted: Thursday, May 05, 2005 5:19:00 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 500
Points: 330
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.
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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.