How to convert color of bitmap image?

I am programming with Acrobat 7.
I'd like to change color of all object to CMYK color or gray.
In case of plain object like path or font,
I need to seek CMYK color from the object's RGB color.
and I change the property of the object color space and value with it.
but in case of bitmap image, i don't know how to at all.
it has numerous colors.
I hope your advice.

Thank you both of you.
by the way, Leonard, Could you tell me that APIs more detailly?
I have look into the document for long time. it is still hard to find proper API.
I have to say this again. I am trying to find APIs based on version 7.
I am using custom function ACEconvertColorProfile which is placed in snippetrunner. it consists of these APIS ACMakeColorTransform, ACApplyTransform, and so on.
but I can't find the way to convert bitmaps once and for all.
I hope you give more hint.
Thanks again.

Similar Messages

  • How to convert Doc file into image

    hello frnds
                     Can any body guide me how to convert doc file into image and show into swf loader.
    actually i have to convert doc files into swf files in runtime so that i have to use this flow.
    is it possible to convert doc file into byte array and than convert into image.
    Thanks And Regards
        Vineet Osho

    You can convert any DisplayObject to byeArray using this function ImageSnapshot.captureBitmapData().getPixels()

  • Query: How does scale9grid work with bitmap images?

    I have a custom component I use as website header built in flash catalyst. Below is the code for the component.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt">
         <s:BitmapImage smooth="true" source="@Embed('/assets/images/TIBB/Header.png')" d:userLabel="Header" width="100%" />
    </s:Group>
    The problem is that it doesn't scale according to 9 slice scaling. How do I use scale9grid for the bitmap image?

    http://www.roseindia.net/tutorial/flex/flex4/components/9slicescaling.html

  • How to convert a 16-bit image to 8-bit

    I am having difficulties in skeletonizing my image. Although I already threshold my image, it still cannot be skeletonized. When I create the image using IMAQ create, the image type must be set to 16-bit, otherwise it will create an error message. An enthusiast in the forum told me that the image must be 8-bit so that it can be skeletonized. But I do not know how to convert the image from 16-bit to 8-bit. So is there anybody out there that can provide me with a solution. Attached is the VI that I used. Really appreciate your help.
    Attachments:
    Image_Acquisition.vi ‏68 KB

    Try using the IMAQ Cast Image function under Motion & Vision>>Vision Utilities>>Image Management>>IMAQ Cast Image.
    Regards,
    Steve

  • How to convert a folder of images to a Collection?

    Ques 1
    How do I convert a folder of images that has been sorted, files rejected, files hidden, and so on, to a Collection? When I create a New Collection and drag the images across from the folder, all editing is lost and the images appear in alphabetical order. I'm using CS6.
    Ques 2
    What is the location of the file that contains the sorted/rejected/hidden data for a folder?

    A Collection is just a saved search.  It does not contain any images.
    Wonder why your question went unanswered for so long?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How to convert HTML text to image

    Hi all!
    I&acute;m having this problem: I have a html code (dynamic generated) and I need to convert it to a image, any idea how to do that?
    Thanks, J.

    Im no Java2D expert but if you want the actual code as an image couldnt you just use 'drawString("<br>", x, y)' to display it and then allow it to be saved as an image, I know theres built in capability in Java to import/export common image formats. Or do you mean you want what the html actually produces as an image?
    Ken

  • How to convert BufferedImage back to Image

    I have an Image from ImageIcon and i want to cut it using BufferedImage.getSubImage(...) and now from BufferedImage i want to turn it to Image again so that i can put in ImageIcon.
    Here is my code:
    URL img = new URL(location);
    ImageIcon imgIcon = new ImageIcon(img);
    Image image = imgIcon.getImage();
    //turn image into bufferedImage via graphic draw
    BufferedImage bi = new BufferedImage(..);
    Graphics g = bi.createGraphics();
    g.drawImage(image,0,0,null);
    bi.getSubImage(...);
    // how to turn bi back to Image newImage
    any ideas??

    More correctly, BufferedImage extends Image as Image is an abstract class and not an interface.
    Shaun

  • How to convert color image(24 bit) YUV 4:2:2 to gray scale 8 bit image

    I am using sony DFW-X700 color camera for one of vision applications.Does NI Compact Vision System(CVS) support YUV 4:2:2 format(8 bit each).I want to do gray scale processing, so i need to convert the YUV color into gray scale (8-bit) in the software(like Labview). Please suggest us how to do this conversion for better gray scale image clarity from color.

    In YUV color space, Y represents the gray scale; in RGB color space, R=G=B represents gray scale. You can simply set R=G=B=Y, to convert YUV to RGB. If the original color depth is 24 bit, then the result is 24 bit too.
    You can create gray scale color table like this:
    array size = 256;
    [0] = 0x000000;
    [1] = 0x010101;
    [2] = 0x020202;
    [255] = 0xFFFFFF;
    To convert 24 bit gray scale to 8 bit, check every pixel in 24 bit image to find the array index according to the color table, and replace the pixel with array index.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • How to convert videos to bitmaps?

    I couldn't find an solution how to load videos with Java and then convert still images to bitmaps. I should make a program that loads video files and then does some processing to the images after I get the data in still images. Is it possible to use standard codecs or is it nessessary to make or get a java version of a codec? I would be happy to find even a solution for mpeg1 -loader.
    So, if I have two seconds of video packed with mpeg1 with 25fps, I should have a way to convert it to 50 different unpacked images that I could process with java.
    If anyone knows how to proceed with this kind of thing, it would be a real help!

    Thanks. As long as those files aren't copy-protected (as they probably will be if these videos are from a download store), it shouldn't be difficult to convert them. If you'll search the iTunes for Windows forum for "video convert", you should find several threads with recommendations on video converters you can use:
    https://discussions.apple.com/community/itunes/itunes_for_windows
    Regards.

  • How to convert color tiff into black and white?

    Hey guys, am new to JAI and need to convert a color tiff into black and white, I've gone through google and developed following code.
    img = JAI.create("fileload","C:/eosimias.tif");
                   newColorModel = new ComponentColorModel(ColorSpace.getInstance(ColorSpace.CS_GRAY),new int[] {8},
                             false, false, Transparency.OPAQUE, DataBuffer.TYPE_BYTE);
                   pb = new ParameterBlock();
                   pb.addSource(img);
                   pb.add(newColorModel);
                   img2 = JAI.create("ColorConvert", pb);
    frame = new JFrame("Tiff study");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.add(new ScrollingImagePanel(img2, 400,400));
              frame.pack();
              frame.setVisible(true);When I execute the following program I get the following error
    java.lang.IllegalArgumentException: The specified ColorModel is incompatible with the image SampleModel.
    on the line frame.add(new ScrollingImagePanel(img2, 400,400));can someone please help me out with it.
    Thank you in advance.

    Check under Image> Mode and select 8 Bits / Channel  first.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • How to convert simple text to image

    Hi,
    I needed to secure web form from automated form submission. Looking into some common website, they use image displaying random text, which is only readable by user. So the automated form submission can be avoided.
    I checked through lot of forum, but could not find help in doing it using java. So is there something in java api using which i can generate image of fly for each request by passing some random generated text of about 5-6 character length.
    Any help on this would be appreciated...
    Thanks,
    Naresh

    hi ican convert image ti html
    coding---------------
    import java.awt.*;
    import java.awt.image.*;
    import java.io.*;
    import java.awt.event.*;
    public class img2html extends Frame
         static Image im=null;
         static int W=-1,H=-1;
         public img2html()     {}
         public static void main(String args[])
              String infile,outfile;
              infile="c:\\micky.jpg";
              outfile="c:\\micky.html";
              boolean paramsOK=false,mode=false;
              //if (args.length <= 1) {
              //     usage();
              //     paramsOK=false;
         //     if (args.length == 2) {
              //     infile = args[0];
              //     outfile = args[1];
                   paramsOK=true;
              if (paramsOK) {
                   //System.out.println("img2html :");
                   System.out.println(" image file " + infile);
                   System.out.println(" data file " + outfile);
                   img2html widow = new img2html();
                   System.out.println("img2html : Loading image file");
                   if (widow.processFile(infile)==false) {
                        System.exit(0);
                   //System.out.println("img2html : Saving data file");
                   saveByteData(outfile,mode);
                   System.exit(0);
         public static void saveByteData(String fn,boolean i)
              int[] grabMapXY;
              grabMapXY          =      new int[(W * H)];
              int pix;
              PixelGrabber pg = new PixelGrabber(im,0,0,W,H,grabMapXY,0,W);                
    //     PixelGrabber pg =
    // new PixelGrabber(image, 0, 0, -1, -1, false);
              // start grab
              try {
                   pg.grabPixels();
              } catch (InterruptedException e) {
                   System.out.println("Map grab failed : " + e);
                   return;
              if ((pg.status() & ImageObserver.ABORT) != 0) {
                   System.out.println("Map grab failed !");
                   return;
              // need to base r on number of valid pixels
              writeToFn(fn,"<HTML>");
              writeToFn(fn,"");
              writeToFn(fn,"<BODY>");
              writeToFn(fn,"");
              writeToFn(fn,"<TABLE border=0 cellspacing=0 cellpadding=0>");
              int red,green,blue,p;
              String r,g,b;
              Color c;
              for (int y =0; y < H; y++) {     
                   writeToFn(fn," <TR>");
                   for (int x =0; x < W; x++) {
                        pix=grabMapXY[ y * W + x ];
                        c = new Color(pix);
                        red=c.getRed();
                        blue=c.getBlue();
                        green=c.getGreen();
                        r=Integer.toHexString(red);
                        g=Integer.toHexString(green);
                        b=Integer.toHexString(blue);
                        if (r.length()==1) { r="0"+r; }
                        if (g.length()==1) { g="0"+g; }
                        if (b.length()==1) { b="0"+b; }
                        writeToFn(fn," <TD WIDTH=1 HEIGHT=1 BGCOLOR=#" + r + g + b + ">", " " + x + "," + y + " - of - " + W + "," + H);
                        writeToFn(fn," </TD>");
                   writeToFn(fn," </TR>");
              writeToFn(fn,"");
              writeToFn(fn,"</TABLE>");
              writeToFn(fn,"");
              writeToFn(fn,"</BODY>");
              writeToFn(fn,"</HTML>");
         public static void writeToFn(String fn,String Dbytes,String status) {
              try {
                   //System.out.println(Dbytes + " pixel " + status);
                   DataOutputStream dos = new DataOutputStream( new FileOutputStream(fn,true));
                   dos.writeBytes(Dbytes); //
                   dos.writeByte(13); // line feed for each line
              dos.writeByte(10); // line feed for each line
                   // close here
                   dos.close();
              } catch (IOException e) {
                   System.err.println("File error: " + e.getMessage());
         public static void writeToFn(String fn,String Dbytes) {
              try {
                   //System.out.println(Dbytes );
                   DataOutputStream dos = new DataOutputStream( new FileOutputStream(fn,true));
                   dos.writeBytes(Dbytes); //
                   dos.writeByte(13); // line feed for each line
              dos.writeByte(10); // line feed for each line
                   // close here
                   dos.close();
              } catch (IOException e) {
                   System.err.println("File error: " + e.getMessage());
         public boolean processFile(String fn)
              boolean OK=false;
              int exitcounter;
              try {
                   im = getToolkit().getImage(fn);
              catch (Exception e)
                   System.out.println("1HOLY MOLY THIS NEVER HAPPENS!!!! "+e);
              MediaTracker tracker= new MediaTracker(this);
              tracker.addImage(im,0);
              try {
                   tracker.waitForID(0);
              catch (InterruptedException e)
                   System.out.println("2HOLY MOLY THIS NEVER HAPPENS "+e);
              if (tracker.isErrorID(0)) {
                   System.out.println("IMAGE FILE COULD NOT BE LOADED");
                   System.out.println(fn);
              } else {
                   exitcounter=0;
                   while ( ((W==-1)||(H==-1)) && (exitcounter<=16000000) )
                        W=im.getWidth(null);
                        H=im.getHeight(null);
                        exitcounter++;
                   if (exitcounter>15999999)
                        System.out.println("Timeout attempting to load image, is it to big?");
                   else
                        OK=true;
              return(OK);
         public static void usage() {
              //System.out.println("Usage:");
              //System.out.println("java img2html infile outfile ");
              //System.out.println(" infile : image file .gif ");
              //System.out.println(" outfile : html file to be created");
              //System.out.println(" /i : Inverse data ");
    }     // end of class

  • How to Convert FLIR Gray Scale Image to a Temperatur​e Map in NI VBAI

    I have been working with a FLIR A315 Infra-Red camera and NI's VBAI software.  I need to determine the presence and continuity of a hot mastic foam that has been injected into the hollow bulb of a rubber weatherstrip seal in 4 adjacent locations that flow together inside the weatherstrip bulb to form a continuous foamed mastic plug.
    So far, I have been able to trigger image acquistions in VBAI from a FLIR IR camera by monitoring an Allen-Bradley PLC's status bit.   The communication with the FLIR A315 camera is via the IMAQdx GigE driver.  However, I haven't figured out how to detemine the temperatures from the gray scale images I receive from the FLIR camera.  I wonder if someone could give me some pointers on how to do this.
    I have attached some images below to illustrate what I am working with and how far I've gotten.
    iPhone_Photo.jpg - shows a photograph of the weatherstrip section that the FLIR IR camera is "looking" at.
    FLIR_IR_Monitor.jpg - a screen capture of a FLIR IR monitor utility that shows temperatures measured at a number of points and areas (showing it can be done)
    NI_VBAI.jpg - part of my VBAI 2010 project which shows the image I've acquired from the FLIR A315 IR Camera
    So, I am part of the way there, but so far have not found a way to map the gray scale image that VBAI is acquiring from the FLIR IR camera into a heat map from which I can determine temperatures - and would appreciate some help on how to do this.
    Kind regards,
    Nick
    Solved!
    Go to Solution.
    Attachments:
    iPhone_Photo.jpg ‏239 KB
    FLIR_IR_Monitor.jpg ‏113 KB
    NI_VBAI.jpg ‏205 KB

    Hello,
    Image provided by FLIR camera are unsigned 16bit.
    Depending on the FLIR temperature scale you selected (10mK or 100mK), you will have to divide by a 10 or 100 factor to get K values. Don't select radiometric output.
    So if your object is cold, the population of the histogram of your image will be on the left part of it and if the object is hot, the population of the histogram will be on the right part.
    If you want your temperature values in Celcius, just add 273,15 to the Kelvin Value.
    Then you can add a color palette in VBAI (FLIR iron is available)
    Hope this helps

  • How to reduce resoluion of bitmapped image

    Hello friends
                         i am taking the bitmapped of a canvas a having height 390 and width 234.using that code
                        var snapshot:ImageSnapshot = ImageSnapshot.captureImage(cnvParent);
                         var bdata:String = ImageSnapshot.encodeImageAsBase64(snapshot);
    and post the bitmap data to php end(server side) throug HTTP service.it creates an image of same resolution of 390x234. but now i want to send the image with resolution 200x150 resolution of same canvas having height 390 width 234.so can any body guides me wot kind of changes required in my code for this.
    Thanks And Regards
         Vineet osho.

    hi,
    The following process will return a resized image form a displayobject
    private function rescale(content:DisplayObject, width:int): BitmapData
    var scale:Number=width/content.width;
    var bd : BitmapData = new BitmapData(content.width*scale,content.height*scale);
    var mt:Matrix=new Matrix();
    mt.scale(scale,scale);
    bd.draw(content,mt);
    return bd;
    for instance if I have an image thats 1000*750 and I want the width to be 250
    var bd:BitmapData = rescale(image.content,250);
    with snapshot you would need to convert the bytearray data into a bitmap for the function to work.
    David.

  • How to determine color of an image with code.

    Hello,
    I need to determine if an image is of a particular color. Ideally I might eventually like to determine what percentage of the image is of a particular color. For example if you have a picture of a redish, yellow and blue sky, it would be nice to know what percentage of the image is red. Or if determining the percentage takes up too much processing time, I could just determine if a rectangular sub region of the image is red.
    How can this be done? Here are two of the line of code I am using to store the image.
    private Image myImage;
    myImage = getImage(getDocumentBase(), "SkyImg.gif");
    Also, does anyone know if this takes up much processing time?
    I need to repeatedly check the color at various times in a particular
    time period and I need the process to be as fast as possible. I would
    sincerely appreciate the help.

    HI,
    would be something along these lines:
        public void color_finder() {
            Image temp = null;
            int width = temp.getWidth();
            int height = temp.getHeight();
            int[] image_array = new int[width*height];
            try {
                temp = ImageIO.read(getClass().getResource("image.gif"));
            } catch (IOException ioe) {}
            MediaTracker tracker = new MediaTracker(this);
            tracker.addImage(temp,0);
            try   {tracker.waitForID(0);}
            catch (InterruptedException e){}
            pg = new PixelGrabber(tempmap,0,0,width,height,image_array,0,width);
            try { pg.grabPixels(); }
            catch (InterruptedException e) {}
            int count = 0;
            for (int i = 0; i < width*height; i++) {
                if (image_array.isLegalColor()) count++;
    int percent = (count/(width*height))*100;
    //blah blah

  • How to convert for 1 bit image

    dir sir;
    i want to make a programe by it i want to upload image real image and then it converted it for 1 bit image ;
    can i use java to do that?
    and if soo what method and package and function helps me to do that .
    if you can provide me with simple code i will be thankfull.
    beast regards.

    Try using the IMAQ Cast Image function under Motion & Vision>>Vision Utilities>>Image Management>>IMAQ Cast Image.
    Regards,
    Steve

Maybe you are looking for

  • IPad (iOS7.0.3) sync to desktop iTunes won't work with wifi ... Only wired

    For some reason, my desktop itunes (11.1.2) doesn't connect to my iPad by WiFi (which it ALWAYS did in the past) so now I have to wire it up to update and sync..???   Another broken Apple feature?? Seems a lot like that other company that I thought I

  • Error FRM-40508 - Please help urgent !!!

    Hi All, I'm trying to design a form (Forms 6i) having 3 data blocks. Values from 3 different table are returned to the related fields in the blocks. At the bottom of form, I've created a "push-button" to take these values and add into 4th table. I ge

  • How do I view pictures on icloud?

    Hi Gurus, Need help! I backup my phone ( including photos) on icloud regularly. Accidently I deleted a few pictures from my library. Is tehre a way that I can just get those pictures back? A way that I can see the pictures that were backup on the iCl

  • I am unable to download gift card sent from USA

    I Received a gift card from USA.  While attempting do download I am getting a error message state that " this code is valid for customers of USA only" please tell tell me alternative way to download it.

  • Playback and record  Audio Tracks

    Dear all, Maybe a simpel question for you to help me out. I use Logic Pro 8. I recorded a song on track 1 and now i want to record vocals on Track 2 Can I play track 1 while recording vocals on track 2? It doesn't work. Thanks in advance!!!!