Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

Luckie

@Luckie
About
Posts
10
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Zooming an image
    L Luckie

    cudnt find any...

    Don't try to make someone love you..Try to be the one who can be loved...

    C# question

  • This is about Rotating an image
    L Luckie

    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...

    C# graphics tutorial question

  • This is about Rotating an image
    L Luckie

    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...

    C# graphics tutorial question

  • This is about Rotating an image
    L Luckie

    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

    C# graphics tutorial question

  • This is about Rotating an image
    L Luckie

    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?

    C# graphics tutorial question

  • How to retrive the value?
    L Luckie

    Thank u Mike.. Got the answer yesterday itself.. But forgot to reply you..sorry.. And a big thanks.. :)

    C# xml question csharp help tutorial

  • How to retrive the value?
    L Luckie

    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

    C# xml question csharp help tutorial

  • How to retrive the value?
    L Luckie

    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?

    C# xml question csharp help tutorial

  • How to retrive the value?
    L Luckie

    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?

    C# xml question csharp help tutorial

  • How to retrive the value?
    L Luckie

    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!

    C# xml question csharp help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups