CS6 - trying to convert an RGB bitmap image

CS6 - trying to convert an RGB bitmap image (the image is actually a tif).  I click on: Image > Mode and bitmap is enabled; everything is grayed out except grayscale.  How can I fix it?  Thank you!

Convert to grayscale first, followed by RGB.

Tags: Photoshop

Similar Questions

  • PaintBackgound of screen does not paint my bitmap image, but don't paint screen?

    There is something I don't understand with the paint and screen paintBackground.

    I am trying to add a background (Bitmap) image to my final class that extends screen and add a VerticalFieldManager on top of the background image.

    Screen.Paint painted my Bitmap, but hides the VerticalFieldManager:

    protected void paint(Graphics graphics) {
      graphics.clear();
      graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, bgBitmap, 0, 0);
      super.paint(graphics);
    }
    

    However, Screen.paintBackground does not paint my Bitmap or my VerticalFieldManager, and I have a blank white screen?

    protected void paintBackground(Graphics graphics) {
      graphics.clear();
      graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, bgBitmap, 0, 0);
      super.paintBackground(graphics);
    }
    

    The API of the playback screen, I thought paintBackground was the right way to achieve this?

    It's an old bug in BB - do not trust Screen.paintBackground (especially MainScreen.paintBackground!). PaintBackground of your Manager is a much better place for it (I know it is not documented, but if you read the Screen.paintBackground you will see it's substitute Field.paintBackground.).

  • How to convert the Bitmap Image in BlackBerry

    Hello

    In my application, I get the picture from the server. Now, I want to convert this Bitmap Image to display on the screen. For this I use below codes. But it doesn't give me the same image does not mean with the clarity and the exact size. He's smaller than the picture.

    I used the codes below:

    private Bitmap getBitmapFromImg(Image img) {
            Bitmap bmp = null;
            try {
                Logger.out(TAG, "It is inside the the image conversion        " +img);
                Image image = Image.createImage(img);
                byte[] data = BMPGenerator.encodeBMP(image);
                Logger.out(TAG, "It is inside the the image conversion---333333333"+data);
                bmp = Bitmap.createBitmapFromBytes(data, 0, data.length, 1);
                } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return bmp;
            // TODO Auto-generated method stub
        }
    

    Here is the BMPGenerator class:

    public final class BMPGenerator {
    
            /**
             * @param image
             * @return
             * @throws IOException
             * @see {@link #encodeBMP(int[], int, int)}
             */
            public static byte[] encodeBMP(Image image) throws IOException {
                    int width = image.getWidth();
                    int height = image.getHeight();
                    int[] rgb = new int[height * width];
                    image.getRGB(rgb, 0, width, 0, 0, width, height);
                    return encodeBMP(rgb, width, height);
            }
    
            /**
             * A self-contained BMP generator, which takes a byte array (without any unusual
             * offsets) extracted from an {@link Image}. The target platform is J2ME. You may
             * wish to use the convenience method {@link #encodeBMP(Image)} instead of this.
             * 

    * A BMP file consists of 4 parts:- *

      *
    • header
    • *
    • information header
    • *
    • optional palette
    • *
    • image data
    • *
    * At this time only 24 bit uncompressed BMPs with Windows V3 headers can be created. * Future releases may become much more space-efficient, but will most likely be * ditched in favour of a PNG generator. * * @param rgb * @param width * @param height * @return * @throws IOException * @see http://en.wikipedia.org/wiki/Windows_bitmap */ public static byte[] encodeBMP(int[] rgb, int width, int height) throws IOException { int pad = (4 - (width % 4)) % 4; // the size of the BMP file in bytes int size = 14 + 40 + height * (pad + width * 3); ByteArrayOutputStream bytes = new ByteArrayOutputStream(size); DataOutputStream stream = new DataOutputStream(bytes); // HEADER // the magic number used to identify the BMP file: 0x42 0x4D stream.writeByte(0x42); stream.writeByte(0x4D); stream.writeInt(swapEndian(size)); // reserved stream.writeInt(0); // the offset, i.e. starting address of the bitmap data stream.writeInt(swapEndian(14 + 40)); // INFORMATION HEADER (Windows V3 header) // the size of this header (40 bytes) stream.writeInt(swapEndian(40)); // the bitmap width in pixels (signed integer). stream.writeInt(swapEndian(width)); // the bitmap height in pixels (signed integer). stream.writeInt(swapEndian(height)); // the number of colour planes being used. Must be set to 1. stream.writeShort(swapEndian((short) 1)); // the number of bits per pixel, which is the colour depth of the image. stream.writeShort(swapEndian((short) 24)); // the compression method being used. stream.writeInt(0); // image size. The size of the raw bitmap data. 0 is valid for uncompressed. stream.writeInt(0); // the horizontal resolution of the image. (pixel per meter, signed integer) stream.writeInt(0); // the vertical resolution of the image. (pixel per meter, signed integer) stream.writeInt(0); // the number of colours in the colour palette, or 0 to default to 2n. stream.writeInt(0); // the number of important colours used, or 0 when every colour is important; // generally ignored. stream.writeInt(0); // PALETTE // none for 24 bit depth // IMAGE DATA // starting in the bottom left, working right and then up // a series of 3 bytes per pixel in the order B G R. for (int j = height - 1; j >= 0; j--) { for (int i = 0; i < width; i++) { int val = rgb[i + width * j]; stream.writeByte(val & 0x000000FF); stream.writeByte((val >>> 8) & 0x000000FF); stream.writeByte((val >>> 16) & 0x000000FF); } // number of bytes in each row must be padded to multiple of 4 for (int i = 0; i < pad; i++) { stream.writeByte(0); } } byte[] out = bytes.toByteArray(); bytes.close(); // quick consistency check if (out.length != size) throw new RuntimeException("bad math"); return out; } /** * Swap the Endian-ness of a 32 bit integer. * * @param value * @return */ private static int swapEndian(int value) { int b1 = value & 0xff; int b2 = (value >> 8) & 0xff; int b3 = (value >> 16) & 0xff; int b4 = (value >> 24) & 0xff; return b1 << 24 | b2 << 16 | b3 << 8 | b4 << 0; } /** * Swap the Endian-ness of a 16 bit integer. * * @param value * @return */ private static short swapEndian(short value) { int b1 = value & 0xff; int b2 = (value >> 8) & 0xff; return (short) (b1 << 8 | b2 << 0); }

    Where an error in my code? Is there another way to do the same thing?

    Why you want to use a bmp image?
    You can just use png, jpg or whatever of the original image is.
    If there is a situation where you need the bitmap image call http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/EncodedImage.html#getBi...

  • How to convert a simple bitmap into a vector image?

    I need to convert a vector of this shopping cart bitmap image: http://ImageShack.us/a/img94/7391/Cartt.PNG

    It's a very simple picture, but when I try to use the tracking of Image tool in CS6 it fails miserably.

    Is there a simple way to convert this to a vector image in Illustrator?

    Thank you!

    A little icon there, Noob.

    Big enough to see the details and draw with the pen tool. Or, perhaps a Google search free shopping cart vector icons would be sufficient.

    http://lmgtfy.com/?q=vector+shopping+cart+icon

    Mike

  • Hello, I've recently upgraded to Illustrator CS6 and when I try to open an eps from illustrator, my computer tries to open it in preview trying to convert a postscript file. What is going on?

    Hello, I've recently upgraded to Illustrator CS6 and when I try to open an eps from illustrator, my computer tries to open it in preview trying to convert a postscript file. What is going on?

    You're my hero!

    Thank you!

    Kendal J Jempson

    Graphic designer

    6616 high chimney Dr S

    Mobile, AL 36695

    Homepage: 251.634.4854

    Cell phone: 251.545.6291

  • How can I convert bitmap image to PDF

    How can I convert bitmap image to PDF

    Save it as a PDF file from any application that supports, which includes Photoshop and Illustrator or Acrobat itself. If nay, no matter, because there is no magic to your file - pixels are pixels and you might just as wel lsend your JPEG or any such as she.

    Mylenium

  • Convert a bitmap image loaded into a symbol

    Hello

    Is it possible to do?

    The function of addTarget() of animatorFactory, motionbase in my code won't work with a straight loaded bitmap image.

    Kind regards

    Ron

    No, but you can use the method of "pulling" of the bitmapdata class, or even easier, just add your charger to a parent movieclip.

  • "Print booklet" convert to RGB without my permission

    I think it's only a recent thing that indesign has decided to start making me (using the CS6 on a Windows 7 machine, if that makes a difference).

    I have an original PDF of a customer who is 100% CMYK. When I import InDesign pages, then print brochure, all images are converted to RGB in the PDF file. It's using the same profile settings, as I would normally just export (CMYK, us Web Coated SWOP v2) still works fine on the same file. It is that when I print Basic that he decided to RGB of the thing. Only the images; text, boxes, stroke etc. are always CMYK.

    Why it does this, and how it stop? Simply convert the colors later in Acrobat is not enough, because it's the 'black' on a black background CMYK RGB conversion.

    This isn't about the settings that you have in InDesign or the print booklet dialog box, it is on the printer properties virtual Adobe PDF (the driver settings). By default, the printer uses the smallest size of file, as the preset, I think (I changed my default years ago), then you must change the settings in the proerties of the printer through Windows, or the driver of the printer setup dialog box after accessing booklet to print.

  • Polygon color with RGB U64 images / Image conversion of RGB U64 in RGB U32

    Hi guys,.

    I want to use the color polygon feature, but I have an input RGB U64 image. The only supported is image RGB U32 type. Is it possible to convert the image to U64 U32 and use the color polygon feature?  I know I'll lose accuracy, but what for the moment.

    Otherwise, you know the functions of polygon that supports RGB U64 images as input?

    Please let me know.

    Thank you

    ARE

    IMAQ Cast Image VI Converts the current image type for the image type specified by Type of Image.

    How Casting works: The VI shifts the value from the source to the range of 8-bit using the depth of specific bit of the source image. Then the VI defines each color component in the destination value for the corresponding component in the value of the source.

  • Problem with a Bitmap image in a ButtonField (get a 104 NullPointerException error)

    Hi, I'm a beginner in programming BlackBerry Apps, well...

    I tried to create a simple ButtonField customized with a bitmap inside, but I constantly get an error 104 eception: NullPointerException, here is my code to field custom buttond.

    import net.rim.device.api.ui.component.ButtonField;import net.rim.device.api.ui.Graphics;import net.rim.device.api.system.Bitmap;
    
    public class CustomButtonField extends ButtonField{  
    
      private Bitmap imagen;
    
      CustomButtonField(Bitmap imagen, long style){
    
          super(style);     this.imagen = imagen;                     }
    
      public int getPreferredWidth(){
    
                    return 60;        }
    
      public int getPreferredHeight(){
    
          return 60;        }
    
     protected void paint(Graphics graphics) {
    
          graphics.drawBitmap(0, 0, imagen.getWidth(), imagen.getHeight(), imagen, 0, 0);   }
    
       protected void layout(int width, int height) {
    
          setExtent(getPreferredWidth(), getPreferredHeight());
    
        }  }
    
    import net.rim.device.api.ui.container.MainScreen;import net.rim.device.api.system.Bitmap;
    
    public class PruebaScreen extends MainScreen{    
    
      private CustomButtonField boton;
    
      PruebaScreen(){
    
          Bitmap imagen = Bitmap.getBitmapResource("res/img/icon.png");     boton = new CustomButtonField(imagen, 0);     add(boton);
    
      }}
    

    I suspect that my problem is due to the method of painting or the page layout, I don't know... I hope someone can help me, thank you very much in advance.

    Check if your getBitmapResource returns any non-null Bitmap image.  Specify the path correctly may take a few tries ("' / res/img/icon.png '," img/icon.png", etc.")

  • Convert byte [] to bitmap

    How convert byte [] bitmap and convert bitmap to byte [] image and when to get the image of the server back to a string how to parse this string for byte [] exmple in android it parse like that

    byte[] logoImg = Base64.decode(jLogo.getString(i), 0);
    

    Thanks in advance

    Hello

    You can use the method createBitmapFromBytes of the Bitmap class to convert an array of bytes to a Bitmap image. If you know that the image will be in PNG format you can even use createBitmapFromPNG

    Specification of the API:

    http://www.BlackBerry.com/developers/docs/7.0.0api/NET/rim/device/API/system/bitmap.html#createBitma...

    http://www.BlackBerry.com/developers/docs/7.0.0api/NET/rim/device/API/system/bitmap.html#createBitma...

  • Is there a quicker way to convert Base64 String Bitmap in OS 4.5 than what I am currently using?

    I use this method to convert strings in Base64 to Bitmap.
    It works fine, except that it takes too long to convert the images.

    The time increases depending on the size in bytes of the image, as expected.

    But I've used a few apps before BB on my 8300 appliance.
    and the Base64 images are converted more rapidly than in my application.

    Is there a faster way to achieve what I need or a way to improve
    This code?

    public convertBase64ToBitmap (String, Byte) {Bitmap image
    ByteArrayInputStream bis = new ByteArrayInputStream (pImage.getBytes (), 0, pImage.getBytes () .length);
    B64 Base64InputStream = new Base64InputStream (bis);
    ByteArrayOutputStream Bos = new ByteArrayOutputStream();
    buff Byte [] = new byte [1024];
    {for (int len = b64.read (buff); len! = - 1; len = {b64.read (buff))}
    Bos.Write (buff, 0, len);
    }
    Byte [] decoded = bos.toByteArray ();
    String dd = new String (decoded);
    Byte [] dataArray = dd.getBytes ();
    EncodedImage encodedImage = EncodedImage.createEncodedImage (dataArray, 0, dataArray.length);
    Bitmap bmp = encodedImage.getBitmap ();
    return bmp;
    }

    Thanks in advance!

    I just thought of this.  I would like to use a direct conversion, but if you want to stick with Base64InputStream

    So what follows is probably more effective.

    Byte [] inputBytes by performing a = pImage.getBytes () / / only for this operation once...

    ByteArrayInputStream bis = new ByteArrayInputStream (inputBytes by doing one, 0, inputBytes.length);

    B64 Base64InputStream = new Base64InputStream (bis);

    Byte [] dataArray = IOUtilities.streamToBytes (b64);

    EncodedImage encodedImage = EncodedImage.createEncodedImage (dataArray, 0, dataArray.length);
    Bitmap bmp = encodedImage.getBitmap ();
    return bmp;

    Don't forget that you can use the Profiler to check performance.

  • Problem with bitmap images within the AI CC

    I seem to have this problem to use the images seen in Photoshop look clean and high resolution, but when placed inside an AI CC file, or when HAVE is exported for the customer, looks jagged and pixilated.

    First of all, here is the read logo to the PSD.  As you'll see it's quite clean and high resolution:

    VIEW PSD.jpg

    So here is this exact logo even after that I placed it in a file Illustrator CC.  Note the surrounding vector images are clean - as it should-, but the logo does not look clean at all:

    psd and ai.jpg

    When I export the JPG or PNG file, everything looks good, as it should, except the logo.  I'm really strung on what do about it.  I know I could re - create the logo that you see in the above photos, but that would be a lot of work and there must be a way to get a bitmap image to work inside AI CC image.  All the tips are greatly appreciated.  Thank you.

    I don't see any reason why this shouldn't work, but it does indeed seem horrible.

    Have you tried to disable the GPU preview?

    You can do this in preferences > performance GPU and untick the box Performance GPU.

    You can also temporarily switch using Cmd/Ctrl E.

    I have searched the logo, found a SVG version (so you can use a vectorized version), opened in artificial intelligence.

    Also, I opened the version HAVE in Photoshop and saved as a psd.

    It displays perfectly crisp and clear in Illustrator.

  • Get the mistakes reached Maximum Volume Snapshots, trying to convert VMDK XP system hotcloning with converter last worm

    Hi I get this error reaches Max Volume Snapshots re trying to convert VMDK XP system with converter hotcloning latest version 5.5.1. Error results in the conversion of a physical machine to fail at 1%.

    I'm trying to convert a drive with a dual boot XP - 2 Xps on it for a Player 6 - a VMware VMDK as a C partition with W98SE original who no longer use.  The C partition has the bootloader boot ini for the dual Xps located on J and I have partitions.  Other partitions on disk cloning whole (need set as Xps access these disks at startup are: D, E: Docs program and shared (a logon for XP user profiles) and F, G and H (contains HD virtual 98SE VirtualPC) partitions.)

    I'm running a chkdsk /f /r on all partitions and deleted snapshots of volume system (from system restore) and disabled the system restore in case that is the question.  I also tried to disable firewall as shown in the manual and stop several 3rd party services to run.  Do not use additional options when cloning.  Target is a 1 to free space (more copy partitions/disc) on a USB external drive '3 '.

    I tried also with just J and no Partition selected with others and same error so not deliver the prob a system double - but do not know if the two will be not bootable in Vm together via boot ini choose as yet have on the physical machine.  Anyone know if this still works as a dualboot on VM or should I be cloning each with C separately like J or I become C as their drive letters are associated with many years of program installs don't want again.  Not sure if can fix these at the same time to be able to start or if on separate drives in the VM and always have access to all other partitions of two Xps - someone knows how to do better?

    Also re my mistake - it's mainly what need fixed so he can achieve it - or it will be allowed to do this conversion coldclone via Windows 8.1 I on another drive - however C drive I need appears as a V as W81 is C on the host.  This will allow even a dual boot VM or at least one of the Xps or bootable drive v - maybe if I move it to C partition 1st position when copying VMDK?  Please keep in mind I have no job and only will use VmWare Player 6 or try in VirtualBox or Hyper-V on the host Windows Pro 8.1 if VmWare Player fails.

    Thank you, but I had already done this and always says without clichés or none - questions - after even managed to fix my COM + install as well.

    Alternative SOLUTION for those who have problems making their host Xp Vm hotclone

    I finally used MOA Cold Clone ISO converter to make a virtual machine of my XPs and related partitions and now finally it seems to work after the configuration of the virtual machine created with the latest Vmware converter 5.5.1 (just to add Vmware Tools and remove selected restore points) via my host Windows 8.1 (such that it is impossible to configure via MOA but fact VM thin image).

    Anyone with problems of manufacturing since their host XP VM and if want to make a VMware Player image - search the Internet for MOA Cold Clone converter (it uses a worm old VMware Converter 3 that allows cold cloning, I think that later to not)-it was relatively easy to install and use.

    I could also dual boot via the boot ini file as before my 2 XP systems.

    Make sure you just prΘconfiguration your ini file to start I did before the virtual machine to the physical host partition is on - I've added a few other partitions to start from tests in case of boot partition number has changed as he did.

    For example: my Xp scores came after the 1st Partition C (boot ini containing the partition) and also a 2nd Partition - D and 3rd Partition - E (I left out F and G as agreed is no need as on the host) so my first XP became Partition 4, then 5 other XP Partition so in boot ini, I had put this :

    [boot loader]

    Timeout = 10

    default = multi (0) disk (0) rdisk (0) partition (5) \WINDOWS

    [operating systems]

    "multi (0) disk (0) rdisk (0) partition (5) \windows="XP Pro SP3 HAND J - C Bootini "/ EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    "multi (0) disk (0) rdisk (0) partition (4) \windows="XP REPLACEMENT / OLDER I DRIVE - ADMIN USE ONLY - repair/rescue/Backup "/ PAE USERVA 2560/fastdetect/noexecute = OptIn

    multi (0) disk (0) rdisk (0) partition (6) \windows="TEST PARTITION 6" / EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    multi (0) disk (0) rdisk (0) partition (7) PARTITION 7 "\windows="TEST / EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    multi (0) disk (0) rdisk (0) partition (8) \windows="TEST SCORE 8" / EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    multi (0) disk (0) rdisk (0) partition (9) \windows="TEST PARTITION 9" / EAP/fastdetect / 3 GB USERVA 2560/noexecute = OptIn

    Test scores from 4 as I thought new shoe that would be 4, then 5 and then others added in case

    You will need to change the number depending on how much other partitions are in front of your XP ones.

    I used free Easeus Partition Manager to control the order of the partitions I was cloning the drive.

    A free EasyBCD allows you also to modify and label your partitions to change your boot.ini file easily once you start in the right partition to boot ini that you set up above and before that you do / clone your Virtual Machine.

    Note: the boot ini can only contain a limited number of registrations or bloodlines tests then you partition carefully probably not exercising that your operating system will be on after cloning a Vm.

  • trying to install from the disc image on the new macbook pro, I get a' configuration error: 6

    Hello, I created a disk image that includes an installed version of Adobe CS5, trying to install from the disc image on the new macbook pro, I get a' configuration error: 6 ". Is it possible to correct the error and install cs5?

    Thank you

    Dominique

    Adobe applications must be installed using files of facilities.  Uninstall, use the cleaning tool, and then reinstall.  If you need a download link is provided below.

    Adobe Creative Suite cleanup tool

    helps resolve installation for CS3 thru CS6 and creative cloud problems

    http://www.Adobe.com/support/contact/cscleanertool.html

    CS5 - http://helpx.adobe.com/creative-suite/kb/cs5-product-downloads.html

    You can also download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

    Quickly find your serial number

Maybe you are looking for