note 88694 added to class.com

From: Date: Tue, 03 Feb 2009 23:18:10 +0000
Subject: note 88694 added to class.com
Groups: php.notes 
Request: Send a blank email to php-notes+get-150176@lists.php.net to get a copy of this message
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 ---- Server IP: 208.69.120.35 Probable Submitter: 74.57.217.155 ---- Manual Page -- http://www.php.net/manual/en/class.com.php Edit -- https://master.php.net/note/edit/88694 Del: integrated -- https://master.php.net/note/delete/88694/integrated Del: useless -- https://master.php.net/note/delete/88694/useless Del: bad code -- https://master.php.net/note/delete/88694/bad+code Del: spam -- https://master.php.net/note/delete/88694/spam Del: non-english -- https://master.php.net/note/delete/88694/non-english Del: in docs -- https://master.php.net/note/delete/88694/in+docs Del: other reasons-- https://master.php.net/note/delete/88694 Reject -- https://master.php.net/note/reject/88694 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150176) next »