1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C# coder help

Discussion in 'Hire a Freelancer' started by CSalt2, Apr 9, 2015.

  1. CSalt2

    CSalt2 Power Member

    Joined:
    Feb 5, 2009
    Messages:
    754
    Likes Received:
    357
    I'd like to pay someone to help me understand this code I'm working with. this is the code below. I need help putting variables for zennoposter into this code... I tried using this variable but it didn't work
    Code:
    img.Save(@project.Variables["Variable name"].Value);



    Code:
    [LIST]
    [*][COLOR=grey]string imagePath = @"D:\downloads\photo_51465.jpg";[/COLOR]
    [*][COLOR=grey]// Create image file[/COLOR]
    [*][COLOR=grey]System.Drawing.Image tempimg =  System.Drawing.Image.FromFile(imagePath);[/COLOR]
    [*][COLOR=grey]System.Drawing.Image img = imgReduse(tempimg, 300, 100);[/COLOR]
    [*][COLOR=grey]// Save new image[/COLOR]
    [*][COLOR=grey]img.Save(@"D:\downloads\small_photo_51465.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);[/COLOR]
    [*][COLOR=grey]tempimg.Dispose();[/COLOR]
    [*][COLOR=grey]img.Dispose();[/COLOR]
    [/LIST]
    

    willing too pay whatever is nessecary to get this code working
     
  2. handmadebots

    handmadebots Senior Member

    Joined:
    Nov 8, 2012
    Messages:
    960
    Likes Received:
    216
    Home Page:
    Added you on skype.
     
  3. JackTheStripper

    JackTheStripper BANNED BANNED

    Joined:
    Mar 28, 2015
    Messages:
    38
    Likes Received:
    10
    Learn how to do stuff yourself you scum of the earth pakistani!
     
  4. cpa-marketing

    cpa-marketing Regular Member

    Joined:
    May 31, 2013
    Messages:
    356
    Likes Received:
    108
    You don't need to Pay anyone.
    The code is the easiest.
    First, remove "@" infront of the @project.Variables["Variable name"].Value
    It is for strings with quotes.
    Make it into this:


     
    • Thanks Thanks x 1