Solved

Image resize and convert to black and white

Posted on 2004-04-13
5
677 Views
Last Modified: 2013-12-26
     Does anyone know how to take a picture (colour .jpg) change it to black and white and resize it.  I have managed to find a few ways of resizing a picture but none of them are very good quality.  I still haven't found a way of converting the picture to black and white.

      I am using Acrobat PDFWriter to print out the datawindow as a PDF so I need the quality of the picture to be better then good.

laurly
0
Comment
Question by:laurly
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:diasroshan
ID: 10822001
hi ,

resizing a picture is no big deal....assuming u  have picture control on ur datawindow... u can use...
dw_1.Object.p_1.Height = 650
dw_1.Object.p_1.Width  = 1200
...to resize ur picture....Or,
u can set the resizeable property to true and manually resize during runtime.....

as for the black and white color ur asking abt.... i don't think u want ur picture in black and white.... u must be talking abt a property called grayscale....
...insert a picture in excel and see the picture toolbar... it has 3 properties namely...grayscale,black and white and watermark.... see the result and find out what u exactly want....coz black and white makes a jpg look horrible....
..anyways as far as the quesion goes i don't think u can convert a picture to black and white thru PB... what u can do is ... dw_1.Object.p_1.Invert = 1

... or else during print u can print as grayscale....

Cheers,
Rosh
0
 
LVL 18

Expert Comment

by:diasroshan
ID: 10822087
hi,

u can also set datawindow print property as follows...
dw_1.Object.DataWindow.Print.Color = 2   //print in monochrome.... 1 for color

Cheers,
Rosh
0
 
LVL 15

Accepted Solution

by:
namasi_navaretnam earned 250 total points
ID: 10837528
Hi laurly, If you need to convert a color photo to balck and white photo and view it within PB, you may need an activex/ocx control to do that. I have not done this personally. But I was able to get a list of activex controls by searching google.

http://www.chestysoft.com/ximage/manual.htm
http://www.imagingcontrol.com/ic/press/resources/
http://www.tonec.com/download4.html

Hope that helps.

regards-
0
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 10837540
0
 
LVL 2

Author Comment

by:laurly
ID: 11159963
I have solved this problem i ended up using Image.ConnectToNewObject("ImageMagickObject.MagickImage.1")  It was able of converting the picure to cmyk, grayscale and resizeing the picture quite nicly.

Thank you for all your help.

laurly
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question