Ask a questionAsk a question
 

Answerpdf files through vb.net

  • Saturday, March 28, 2009 12:24 PMgudluck Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code

    I'm creating a program to generate PDF files in VB.Net.

    Everything is working fine except that the image is being displayed with a blue background while the image provided doesn't have any.

    Following are the lines of code being used:

    sColor = IIf(mvarEncodeASCII85, ToASCII85(ImgColor),
        (System.Text.Encoding.GetEncoding(1252).GetString(ImgColor)))
    

    What am I doing wrong?
    the image is a .bmp image.

Answers

  • Saturday, March 28, 2009 2:30 PMnobugzMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Your code snippet is quite mysterious, as it the reason why you'd post this in the 64-bit .NET forum.  I'd guess that you have to use the Bitmap.MakeTransparent() method.
    Hans Passant.

All Replies