ITextSharp Renders Image With Poor Quality In PDF?

Mar 26, 2010

I'm using iTextSharp to print a PDF document. Everything goes ok until I have to print the company logo in it. First I noticed that the logo had poor quality, but after testing with several images, I realize that was the iTextSharp rendering it poorly.The test I did to say this was to print the PDF using my code and then edit the document with Acrobat 8.0 and I drew an image. Then printed the two documents and saw the noticeable difference.My question is that if anyone know if this can be due to a scaling problem where I'm failing to tell iTextSharp how it must render the image or is an iTextSharp limitation.

[Code]...

View 3 Replies


ADVERTISEMENT

Capture Sound - Using Mcisendstring Function But The Sound Quality, Is Poor?

Jun 20, 2011

I have a question about of capture sound function, someone have a code example for visual basic 2010 in windows 7?, I tried using mcisendstring function but the sound quality, is poor.

View 5 Replies

Image Quality Lost When Saving An Image In JPEG Using Bitmap?

Dec 28, 2010

'm working on an Image Encrypting software which reads out all the pixels of an image and then relocating the pixels in some way.

My Code is as below

Dim Img As New Bitmap(tbEpath.Text)
Dim ImgSize As Integer = Img.Width * Img.Height
Dim Pixels(Img.Width, Img.Height) As Color

[code]....

View 6 Replies

VS 2008 Open Image + Save Image + Keep Quality?

Oct 3, 2011

I am trying to edit an image. I can open the image with Picturebox1.load(mypicture)

I can change the pixels/edit the picture by Dim img as new bitmap(picturebox1.image)

[Code]...

now here is the weird part. When I save the image the filesize INCREASES..but the picture dimensions are the same Example... TEST.PNG 1.3KB, when opened up via picturebox/saved the image is now 2.3KB

not sure why...i even though I specify system.drawing.imaging.imageformat.PNG

samething with JPG... it actually SHRINKS it evenmore.. example 88KB jpeg.. saved as jpeg is now 47.7KB...

View 7 Replies

Low Quality Image Into A Label?

May 4, 2012

I'm trying to pass an image showing to the user a countdown. For this, I'm using a separate thread where I'm checking when the countdown timer should be started, and when so, I draw an image for every 6 seconds passed.

What's annoying is when I pass the drawn image to the UI, the quality of the image is changed and it looks bad to the user.

This is my little script that handles the drawings:

Try
remainingTime = (#12:04:00 AM# - (DateTime.Now - local_DateTimeclick)).ToString("HH:mm:ss")
remainingTimeInSeconds = Convert.ToDateTime(remainingTime).Minute * 60 +

[Code]....

Also tried with changing the properties of g, but there was no positive effect.

what can i do to make this properly work without changing the quality of the returned image?

View 1 Replies

.net - Controlling Image Resolution When Converting A PNG Image Into A PDF Using ITextSharp?

Aug 10, 2010

I have created a PNG image that is 200 DPI, and perfectly sized for a landscape A4 page size. I needed to convert this to a PDF document, so I've used the iTextSharp library with the code below.This all works, however the image quality has degraded.

Public Sub ConvertPNGtoPDF(ByVal inputFile As String, ByVal outputFile As String)
Using fs As New FileStream(outputFile, FileMode.Create, FileAccess.ReadWrite, FileShare.None)
Dim document As New Document(PageSize.A4.Rotate, 0, 0, 0, 0)

[code]....

View 1 Replies

Adjusting Image Quality With WIA In VB 2005?

Jan 10, 2009

I've developed an application that acquires images from my Logitech QuickCam Pro 9000 using WIA. The problem is that I cannot figure out how to adjust the quality of the image taken by the camera. The camera has a 2MP lense, but the program will only acquire a picture of 320x240 pixels, which is the lowest resolution the camera has. How do I tell the camera to take a picture at one of it's other resolutions? IE: 640x480, 960x720, 1.3MP, or 2MP?

[Code].....

View 2 Replies

Resize Image While Keeping Its Quality?

Nov 17, 2009

I got this code from this forum, it works perfectly but I have a problem where when you resize the images, the quality of the image becomes not as good, is there a way to keep it in the same quality as it is when resizing?[code]....

View 13 Replies

What Controls Image Quality In IIS Based On Following Example

Sep 16, 2010

I had this question before "Resize image on the fly make the image lose quality online but locally works nice".And what i got now is that it's not a problem of local or online, i ran this resize on the server itself "dedicated server", and i got the same bad quality image, so the problem is in the IIS configurations.What in iis can make this bad quality image happen?

View 1 Replies

Interface And Graphics :: Added Image Quality Ran Off

Mar 1, 2010

I'm using below code 2 add image into a picturebox during the run time. i could add image but when i clicked the picture to make it become smaller, the picture quality is blur which not as the initial picture.

[Code]...

View 4 Replies

Drawstring Text Quality - Image To Save As A PNG - GIF - JPEG

Oct 30, 2009

I have a routine that creates a report which includes text and graphics. When I print to a PDF or printer the output looks great. When I draw the report on an image to save as a PNG, GIF, JPEG, etc. it does not look as good and I understand that is related to the 96 dpi native resolution. However, I made some modifications, and even though the graphics part of the image looks better, the text does not look as good as the PDF. I am creating the image using 300 dpi and text rendering is set at the highest quality.

[Code]...

View 15 Replies

When Creating An Bitmap Image From Scratch, The Quality Stinks?

Mar 19, 2010

The Vb.Net application creates a bitmap from scratch and either converts to a tiff or sends it to a printer. In both cases, the quality of the image (in this case the font) is not good at all. The sample code listed below creates the graphics object that I use to write to the image.

Dim gr2 As Graphics = Graphics.FromImage(New Bitmap(800, 1000), Imaging.PixelFormat.Format32bppPArgb))

[code]......

View 2 Replies

Mimic Picasa's Rendering Of Reduced Quality Image To Speed Up Drawing?

Jun 23, 2010

I have an owner-drawn control where performance is an issue during quick repaints such as object drags, resizing and painting the selector square. i have noticed that several other apps, including Picasa, will temporarily draw a reduced-quality image during fast repaint scenarios and then update the image with a higher-quality version when the UI "settles down."

How should I (can I?) produce a lower-quality image to paint when many quick redraws are taking place? Are there other strategies similar to this i can employ to increase performance (or fake increased performance.) [code]...

View 1 Replies

.net - ITextSharp Overlay Image?

Mar 15, 2011

I have an instance where I have a logo image as part of some artwork..If a user uploads a new logo I have a form field which is larger than the default logo.I then use that form field to position the new image.

The problem is I need to set the background colour of that form field to white so that it covers the old logo in the event that the new image is smaller than the old logo..

what I have done is:foreach (var imageField in imageReplacements)
{
fields.SetFieldProperty(imageField.Key, "bgcolor", iTextSharp.text.Color.WHITE, null);
fields.RegenerateField(imageField.Key);
PdfContentByte overContent = stamper.GetOverContent(imageField.Value.PageNumber);
float[] logoArea = fields.GetFieldPositions(imageField.Key);

[Code]...

The problem with this is that the background colour of the field is set to white and the image then doesn't appear.. i remove the SetFieldProperty and RegenerateField commands and the image replacement works fine.is there a way to set a stacking order on layers?

View 1 Replies

Itextsharp: Getting Coordinates Of Image?

Dec 15, 2009

in vb.net is it possible to get the coordinates of an image like if i do a

document.add (jpeg_image)
x_coordinate = jpeg_image.xcoordinate???????

View 1 Replies

Itextsharp: Getting Height Of Image

Dec 15, 2009

i need to add a data table right after an image on a PDF in vb.net

[Code]...

i highlighted broccoli, buckwheat, butter, cabbage. these are all part of a data table that is supposed to go after the bottom SEVERE word because the entire thing that you see is one image called jpg2

View 1 Replies

Extract An Image From A Pdf File Using ITextSharp?

Jul 9, 2010

I'm currently trying to extract an image from a pdf file using iTextSharp.

The pdf is made from a scanner: it has a single page that contains one big image.

When looking at the file I find the following:

<< /Type /XObject /Subtype /Image /Name /Obj3 /Width 2480 /Height 3507 /ColorSpace /DeviceGray /BlackIs1 true /BitsPerComponent 1 /Length 5 0 R /Filter /CCITTFaxDecode /DecodeParms << /K -1 /Columns 2480 >> >> stream

[Code].....

But, that doesn't work as I get one big black tiff file with different shades of gray on top.

Does anyone know a way how I can decode those CCITTFaxDecode images?

View 2 Replies

Itextsharp: Place An Image All The Way At The Bottom?

Dec 18, 2009

i have an image that i just want to place all the way at the bottom of the page. how do i do this?

View 2 Replies

.net - Itextsharp: Setting Dimensions Of Image Manually?

Oct 21, 2009

the user will pick an image on their hardrive and i will put it on a pdf file using itextsharp with vb.net. how do i manually set the dimensions of the picture?

View 1 Replies

ITextSharp - How To Input Image (PNG) From Project Resource

Aug 3, 2010

I have iTextSharp creating a pdf for me in VB.net. Everything was working famously, except now I want to embed an image. I tried this:

Dim test = My.Resources.MyImage
Dim logo = Image.GetInstance(test)

This an error though:

'GetInstance' cannot be called with these arguments

It appears as though it expects a path, and is getting a System.Drawing.Bitmap type.

Is there any way that I can add a project resource image to my PDF?

View 1 Replies

VS 2010 Itextsharp Image Move On Next Page For No Reason

Jun 3, 2012

I am placing and image using this [code]It works perfectly however when my document is extended to second or third page.. it does not stays on the first page.. it stays on same position however moves to the last page

View 1 Replies

PowerPacks - GUI For A Game - When Start Program It Renders The Board From Right To Left On The Screen

Mar 14, 2012

So i am working on a GUI for a game (just some messing around in VB.net tho) and i came across the following problem. The board of my game consists of a 70*35 grid of RectangleShapes on which i can move around. When i start my program it renders the board from right to left on the screen and i have serious lag when i try to move around on it. I know you'd normally use double buffering to reduce flickering, but that didn't do anything (unless i'm doing it wrong).

This is my code:

Code:
Dim player As Player = New Player
Dim board(70, 35) As RectangleShape

#Region "Initialisation"

[CODE]...

View 6 Replies

DataGridView Has Poor Performance

Jun 24, 2010

I have a VB.NET app that has DataGridViews and Drop Down boxes.In VB6, the FlexGrid was fast, scrolling was smooth.Now, in VB.NET, the DataGridView is really slow to scroll through, and the dropdown boxes are sluggish as well.For the interesting bit. If I run Microsoft NetMeeting and either leave it open or click the X to close it (it still stays as a resident program in the system tray though), all the data grids and drop downs work smoothly again.If I actually terminate NetMeeting, they go back to slow/sluggish again.What is it (was it?) in NetMeeting that maybe can be incorporated into my program (some Microsoft library?) that changes how the graphics redraw?

View 1 Replies

VS 2008 .Net Poor Implementation Of Control Transferences?

Nov 8, 2011

What i really hate about it is if i have a control that custom paints then a transparent control within that control; it paints the transparent control as *button color* until it calls the transparent controls paint event again.... is there anyway to change the behavior of this so that it either paints the last draw over the control until it is actually repainted- or to @ least set a color other than button color?

you think it would @ least use the forms bg color instead - because it looks horrid when you have a black background with all of these near white boxes on it!

View 2 Replies

ITextSharp - Calling AddImageToPage() With The The Optional Pages Parameter Will Add The Image To All Pages Though?

Dec 20, 2011

I am using Stanav's PdfManipulation2.AddImageToPage(..., Pages) for iTextSharp library (v5.1.3) and was not able to add the image to specific pages: e.g. to add to only page 1 and 3 of a five pages PDF

Dim Pages() As Integer
Pages = New Integer() {1, 3}
PdfManipulation2.AddImageToPage(..., Pages)

Calling AddImageToPage() with the the optional Pages parameter will add the image to all pages though.

View 14 Replies

Asp.net - Performance Implications Of Opening Multiple SQLConnections In Poor-man's ORM?

May 30, 2012

I'm implementing a poor-man's ORM an a legacy application (.NET 2.0 web app, hand-coded SQL queries). I have two data classes: Customer and Order:

Public Class Customer
Public Property CustomerId As Integer
Public Property CustomerName As String

[code]....

I'm concerned about the performance of this method, namely if I'm pulling multiple Customer's. For each Customer pulled, I have to hit the database again (opening another connection), and getting the orders for that given customer. If I'm not mistaking, it wouldn't take many records to accumulate a large number of open connections.

How can I determine the number of new connections being made and whether or not I'll encounter any connection pooling or other such .NET-imposed limits?

One thought I've had is to pass the SQLConnection object created in the calling class to the getOrdersByCustomerId function and have that function use the (apparently?) already-open connection. I have not tested it namely because I don't know how to determine if it's better than my existing method. Thoughts?

I'm creating a search web service that returns JSON for processing by the client. The service takes a single search parameter, performs multiple lookups on different tables, then returns a custom JSON object. For example, if the user puts in what appears to be a name, I search both the Customers table for a list of the top n customers and the Orders table for the top n orders that have a customer with that name.

View 4 Replies

Connecting To HP Quality Center?

Sep 16, 2011

We have developed an application using Vb.net . Is there a way by which we can connect to HP Quality center.We have credentials for HP Quality Center, is there a way by which we can connect to it and access fields

View 1 Replies

Print A Form With Quality?

Jul 19, 2009

I need to know the best way to print a form in Visual Basic 2008. I have tried to print it using the printform method but the quality of the text is really bad. Are there other ways to print forms that dont involve the printform method and have great quality? I need to print the form the way it looks on the screen(which consists of textboxes,lines,labels).

View 1 Replies

Text Quality Using DrawString?

Jul 7, 2010

In the code below if I remove the FillRectangle line the text quality is not good. Why?

View 4 Replies

Adjust The Icon Quality On A Tool Bar?

Dec 17, 2009

How can I adjust the icon quality on a tool bar?

Below is the code I am using to add a tool bar and add the icon to the button. I am having a problem with the quality of the icon. The icon is 32X32 and has looks good viewing in windows explore. When it is viewed in the imagelist the quality is very poor. What can I do?

Code:
Dim tsView_ZoomIn As New ToolStripButton("")
AddHandler tsView_ZoomIn.Click, AddressOf ZoomIn_Click
tsView_ZoomIn.Image = ImageList1.Images(0)

[Code]....

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved