plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A Delphi-friendly way to simplify GDI+ functionality!

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Programming Reg. U
View previous topic :: View next topic  
Author Message
mayo
Administrator
Administrator


Joined: 14 Jun 2009
Posts: 700

PostPosted: 13/11/2011 22:09    Post subject: A Delphi-friendly way to simplify GDI+ functionality! Reply with quote

A Delphi-friendly way to simplify GDI+ functionality!
HELP OPEN SOURCE COMMUNITY..HELP BOIAN ON THIS PROJECT....
http://mitov.users.sourceforge.net/
The free open source library allows quick and easy implementations of complex GDI+ applications, in a normal Delphi-friendly code.
http://www.mitov.com/products/igdi+
http://www.mitov.com/tutorials
[img]http://www.mitov.com/system/shots/43/original/IGDIPlusDemo.jpg?1311195121[/img]

... you write code like this
Code:
procedure TForm1.FormPaint(Sender: TObject);
var
 AGraphics      : IGPGraphics;
 AFont          : IGPFont;
 ALeftTopCorner : TGPPointF;
 ARect          : TGPRectF;
 ARect1         : TGPRectF;
 APath          : IGPGraphicsPath;

begin
 AGraphics := TGPGraphics.Create( Canvas );
 AGraphics.SmoothingMode := SmoothingModeAntiAlias;
 AGraphics.TextRenderingHint := TextRenderingHintAntiAlias;
 
 ALeftTopCorner := MakePointF( 20, 20 );
 AFont := TGPFont.Create( 'Microsoft Sans Serif', 40, [ fsBold ] );
 ARect := AGraphics.GetStringBoundingBoxF( 'Welcome to IGDI+', AFont, ALeftTopCorner );
 ARect1 := GPInflateRectF( ARect, 10, 10 );

 // Draw a fancy rounded rectangle.
 AGraphics.DrawRoundRectangleF(
       TGPPen.Create( TGPLinearGradientBrush.Create( GPInflateRectF( ARect1, 2, 2 ), aclRed, aclBlue, LinearGradientModeVertical ), 4 ),
       TGPPathGradientBrush.Create(
         TGPGraphicsPath.Create().AddRoundRectangleF( ARect1, MakeSizeF( 20, 20 ) )
          )
        .SetInterpolationColorsArrays( [ aclGreen, aclCyan, aclYellow ], [ 0, 0.3, 1 ] )
        .SetCenterPointF( MakePointF( 250, 50 ))
        .SetFocusScales( 0.87, 0.2 ),
       ARect1, MakeSizeF( 20, 20 ) );

 // Draw a text with semitransparent shadow.
 AGraphics.DrawString( 'Welcome to IGDI+',
            AFont,
            MakePointF( 23, 23 ),
            TGPSolidBrush.Create( MakeARGBColor( 50, aclBlack )) )
           
      .DrawString( 'Welcome to IGDI+',
            AFont,
            ALeftTopCorner,
            TGPLinearGradientBrush.Create( ARect, aclRed, aclBlue, LinearGradientModeForwardDiagonal ));


 // Draw a closed curve.
 AGraphics.DrawClosedCurveF( TGPPen.Create( aclRed, 3 ), TGPSolidBrush.Create( aclBlue ),
       [
       MakePointF( 60, 160 ),
       MakePointF( 150, 180 ),
       MakePointF( 200, 140 ),
       MakePointF( 180, 220 ),
       MakePointF( 120, 200 ),
       MakePointF( 80, 260 )
       ] );

 // Draw a semitransparent star.
 APath := TGPGraphicsPath.Create();
 APath.AddLinesF(
  [
  MakePointF( 75, 0 ),
  MakePointF( 100, 50 ),
  MakePointF( 150, 50 ),
  MakePointF( 112, 75 ),
  MakePointF( 150, 150 ),
  MakePointF( 75, 100 ),
  MakePointF( 0, 150 ),
  MakePointF( 37, 75 ),
  MakePointF( 0, 50 ),
  MakePointF( 50, 50 )
   ] );

 AGraphics.TranslateTransform( 420, 30 )
      .FillPath(
       TGPPathGradientBrush.Create( APath )
        .SetCenterColor( MakeColor( 200, 255, 0, 0))
        .SetSurroundColors(
         [
         MakeColor(80, 0, 0, 0),
         MakeColor(80, 0, 255, 0),
         MakeColor(80, 0, 0, 255),
         MakeColor(80, 255, 255, 255),
         MakeColor(80, 0, 0, 0),
         MakeColor(80, 0, 255, 0),
         MakeColor(80, 0, 0, 255),
         MakeColor(80, 255, 255, 255),
         MakeColor(80, 0, 0, 0),
         MakeColor(80, 0, 255, 0)
         ] ),

       APath );

 // Draw rotated ellipse.
 AGraphics.ResetTransform()
      .TranslateTransform( 300, 160 )
      .RotateTransform( 30 )
      .DrawEllipseF(
       TGPPen.Create( aclRed, 3 ),
       TGPLinearGradientBrush.Create( MakePointF( 0, 0 ), MakePointF( 20, 20 ), aclYellow, aclGreen )
       .SetWrapMode( WrapModeTileFlipX ),
       0, 0, 200, 80 );
end;
 



IGDI+ on SourceFourge.net

IGDI+ is now available on SourceForge: https://sourceforge.net/projects/igdiplus/ . An SVN repository is used. We are in process of adding all the source files.

You can access the SVN repository here: https://igdiplus.svn.sourceforge.net/svnroot/igdiplus directly or by using SVN :

svn co https://igdiplus.svn.sourceforge.net/svnroot/igdiplus igdiplus

Please let us know if you are interested in contributing to the project development so we can consider adding you to the list of project members.

Code:
About SourceForge.net:

SourceForge.net is the world's largest provider of hosting for Open Source software development projects. SourceForge.net provides a variety of services to projects, including a download mirror network, collaborative development tools (like CVS and Subversion), and tools to support discussion and support. These services are provided to projects and their end-users free-of-charge.
About Open Source:

Of benefit to users, Open Source software is licensed so you can download and use the software free-of-charge. The source code for this software is made available free-of-charge, you (or a programmer you hire) can make changes to this software to better meet your needs, and you can release your changed code back to the community passing the benefit on to other users.


See also.. OpenWire Editor, With OpenWire Editor you see the big picture and edit data flow and filter logic by simply connecting "wires" to components!

http://www.youtube.com/watch?feature=player_embedded&v=UN-LXwrn-8E# !
Back to top
View user's profile Send private message
mayo
Administrator
Administrator


Joined: 14 Jun 2009
Posts: 700

PostPosted: 06/07/2012 05:19    Post subject: InstrumentLAB NET 4.3 Reply with quote

InstrumentLAB NET 4.3
Build attractive, effective user interfaces for your DSP and other applications!
Gauges
Meters
LEDs
Matrix Displays
Glass Effects
Combined Controls
InstrumentLab is a set of visual instruments and controls based on GDI+. For Delphi / C++ Builder, InstrumentLab is a set of native VCL components, and these components can be composited:
http://www.mitov.com/products/instrumentlab#overview

Download:
https://rapidshare.com/files/4235030140/InstrumentLab_NET_4_3.7z

A Delphi-friendly way to simplify GDI+ functionality! A Delphi-friendly way to simplify GDI+ functionality!

Angular Gauges demo:
A Delphi-friendly way to simplify GDI+ functionality! A Delphi-friendly way to simplify GDI+ functionality!
Download:
http://www.mitov.com/system/exes/5/original/ILAngularGaugesDemo.exe

Analog Clocks demo
Download:
http://www.mitov.com/system/exes/4/original/ILAnalogClocksDemo.exe

Linear Gauges demo
A Delphi-friendly way to simplify GDI+ functionality! A Delphi-friendly way to simplify GDI+ functionality!
Download:
http://www.mitov.com/system/exes/20/original/ILLinearGaugesDemo.exe

Segment Gauges demo
A Delphi-friendly way to simplify GDI+ functionality! A Delphi-friendly way to simplify GDI+ functionality!
Download:
http://www.mitov.com/system/exes/25/original/ILSegmentClocksDemo.exe

Segment Indicators demo
A Delphi-friendly way to simplify GDI+ functionality! A Delphi-friendly way to simplify GDI+ functionality!
Download:
http://www.mitov.com/system/exes/27/original/ILSegmentIndicatorsDemo.exe

Thermometers demo
A Delphi-friendly way to simplify GDI+ functionality! A Delphi-friendly way to simplify GDI+ functionality!
Download:
http://www.mitov.com/system/exes/29/original/ILThermometersDemo.exe

Glass Panels demo
A Delphi-friendly way to simplify GDI+ functionality! A Delphi-friendly way to simplify GDI+ functionality!
Download:
http://www.mitov.com/system/exes/17/original/ILGlassPanelsDemo.exe
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Programming Reg. U All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro