note 88694 deleted from class.com by cmb

From: Date: Fri, 26 Jun 2015 15:05:53 +0000
Subject: note 88694 deleted from class.com by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-202973@lists.php.net to get a copy of this message
Note Submitter: CLICIU at YAHOO dot com ---- What's really cool is that you can write anything you like in C#/VB.NET and easily access it via COM in PHP This is a image Rotation Example using C# and PHP <form name="form1" method="get" action="#"> <input name="angle" type="text" value="<?echo $_GET["angle"];?>"> <input type="submit" name="Submit" value="Submit"> </form> <?php if(!isset($_GET["angle"]) && !is_Numeric($_GET["angle"]) ) { $angle=5; }else{ $angle=intval($_GET["angle"]); } // $img =new COM("MyImageProcessor.MyImageProcessing"); $img = new DOTNET("MyImageProcessor","MyImageProcessing"); $img->LoadImage("D:\\htdocs\\TT\\Flower.jpg"); $img->RotateImage($angle); $img->SaveImage("D:\\htdocs\\TT\\new.jpg"); ?> Otput image:<br> <img src="new.jpg" width="520"/> <br><br> Original image <br> <img src="Flower.jpg" width="520"/> The complete source code PHP and C# : http://www.navioo.com/php/tutorials/PHP_and_NET_876.html

« previous php.notes (#202973) next »