vb image encoder error RRS feed

  • Question

  • User192560676 posted
    I am saving imaegs to the server that have been resized when i try to set the image quality i get the following error

    Compiler Error Message: BC30561: 'Encoder' is ambiguous, imported from the namespaces or types 'System.Text, System.Drawing.Imaging'.

    here is the line of code thats producing the error

    ep.Param(0) = New EncoderParameter(Encoder.Quality, 90)

    any ideas????
    Thursday, July 14, 2005 9:58 AM

All replies

  • User192560676 posted
    used the full path as below running ok now 

    Dim encoderParam as System.Drawing.Imaging.EncoderParameter = new System.Drawing.Imaging.EncoderParameter(System.Drawing.Imaging.Encoder.Quality,quality)
    Thursday, July 14, 2005 12:20 PM