cudnt find any...
Don't try to make someone love you..Try to be the one who can be loved...
cudnt find any...
Don't try to make someone love you..Try to be the one who can be loved...
Can u just modify it in the coding and reply or just quote the lines to be modified.. :)
Don't try to make someone love you..Try to be the one who can be loved...
MidwestLimey wrote:
you'll need to calculate how much room you'll need, size the original image appropriately and then resize the image afterwards to your required dimensions.
Any other way?
Don't try to make someone love you..Try to be the one who can be loved...
MidwestLimey wrote:
You'll need to size the image appropriately, guarenteeing enough room for a rotated image to fit. At the very least the size will need to be a square of the largest dimension of the original image. You can crop the image appropriately afterwards.
Don't get you mate
private Bitmap rotateImage(Bitmap b, float angle) { Bitmap bmp1 = new Bitmap(b.Width, b.Height); Graphics g = Graphics.FromImage(bmp1); g.TranslateTransform((float)b.Width / 2, (float)b.Height / 2); //rotation g.RotateTransform(angle); g.TranslateTransform(-(float)b.Width / 2, -(float)b.Height / 2); g.DrawImage(b, new Point(0, 0)); return bmp1; } I found this code in a site..This deals with Rotating an image.. But when i crop with this... Image is getting vanished on its edges.. How to perform rotation without any modifications in the image size? Any modidications in this or any clues?
Thank u Mike.. Got the answer yesterday itself.. But forgot to reply you..sorry.. And a big thanks.. :)
i got it Mike...Thanks.. Pls clear my next doubt.. I have retrieved the value from an XML file... wen a button is clicked.. a new form opens with a text box.. i want the value of the XML node to be displayed in the text box... say..CropX is the integer.. tbX is the name of the text box.. How can i do that.. When the form,is initialised, the text box should be initiated with the cropX value.. pls help me lik previous time Mike..Awaiting for ur reply
Great Job Mr.Mike.. A single line of code is enough..Littl confused now. :-( Like.... int XP = somthing.Convert.toint32(X) u said that x is not an integer,.. But i want to use this node value as an integer in my next part of my program.. is t possib?
Thanks for the response Sir,my reqst is.. Suppose i declare an integer called XP and now i want to assign the value of X(from previous coding) with XP. How do i convert it?
Am getting the value of a node from my XML like this.. XmlDocument doc = new XmlDocument(); doc.Load(Application.StartupPath + "\\XMLfile.xml"); string xpath = "/Image/Crop/X"; XmlNode ReadX = doc.SelectSingleNode(xpath); XmlNode X = ReadX.FirstChild.ParentNode; XmlNodeReader nodeReader = new XmlNodeReader(X); X = doc.ReadNode(nodeReader); (Is this right? As I am new to .Net..I req u to check out and If am wrong.. kindly correct my mistake) And if am right.. I want to use this X as an integer.. How do I do this... I tried a method..But it throws an error that "Cannot implicitly convert type Int to system.xml.xmlnode"..tell me a way to retrieve the value of a node from my xml and to use in my further part of my program.. as an integer.. Thank You!