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 : Tuesday, May 03, 2005 4:16:00 PM(UTC)
wangting

Rank: Member

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

i want to use it in c++ ,can you give me a sample
thank you :)
Dmitry  
#2 Posted : Tuesday, May 03, 2005 4:49: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)
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.

Edited by user Monday, December 24, 2007 3:22:11 PM(UTC)  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

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

Rank: Member

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

can i use Graphics Mill for .NET in vc6
Dmitry  
#4 Posted : Wednesday, May 04, 2005 9:19: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)
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 Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.