Color Matrix Alpha values and drawing images.

Hi All,
I am experimenting with using a color matrix to change images and have brightness, R, G, B changing but the alpha does not seem to do anything. I have a scrollbar for the alpha value in the matrix in the example. It seems it should change the image in some
way but it does not.
In this example I put 1 for red in the matrix thinking as I moved the scroll bar the alpha transparency would change the image in some way but it does not? It does not matter what colors or image I use nothing seems to happen with alpha? Is it
only for drawing lines and such or does it do something to images? If so what?
Imports System.Drawing.Imaging
Public Class Form3
Private rustybmp As New Bitmap("c:\bitmaps\rusty.jpg")
Private Sub Form3_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.DoubleBuffered = True
VScrollBar1.Maximum = 100
VScrollBar1.Minimum = 0
VScrollBar1.Value = 50
End Sub
Private Sub Form3_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
Dim cm As ColorMatrix = New ColorMatrix(New Single()() _
{New Single() {1, 0.0, 0.0, 0.0, 0.0}, _
New Single() {0.0, 1, 0.0, 0.0, 0.0}, _
New Single() {0.0, 0.0, 1, 0.0, 0.0}, _
New Single() {0.0, 0.0, 0.0, 1.0, 0.0}, _
New Single() {1, 0, 0, VScrollBar1.Value / 100, 1}})
Dim image_attr As New ImageAttributes
image_attr.SetColorMatrix(cm)
e.Graphics.DrawImage(rustybmp, Me.ClientRectangle, 0, 0, rustybmp.Width, rustybmp.Height, GraphicsUnit.Pixel, image_attr)
End Sub
Private Sub VScrollBar1_Scroll(sender As Object, e As ScrollEventArgs) Handles VScrollBar1.Scroll
Me.Refresh()
End Sub
End Class

I didn't try this.
How to: Use a Color Matrix to Set Alpha Values in Images
La vida loca
Oh, ok, in your link example the alpha is the 4 row 4 col.
I was using the 5th row 4th col because I thought that was R, G, B A across the 5th row. Maybe that is for a solid brush or something.
This works as I expected that way. Still looking....
Dim cm As ColorMatrix = New ColorMatrix(New Single()() _
{New Single() {1, 0.0, 0.0, 0.0, 0.0}, _
New Single() {0.0, 1, 0.0, 0.0, 0.0}, _
New Single() {0.0, 0.0, 1, 0.0, 0.0}, _
New Single() {0.0, 0.0, 0.0, VScrollBar1.Value / 100, 0.0}, _
New Single() {0, 0, 0, 0, 1}})
Cool!
Now if you could just get that working with HoloLens..... :)
La vida loca

Similar Messages

  • Adding color to a black and white image

    How do you add a splash of color to a black and white photo? I have this beautiful picture of my daughter in a ballet tutu and I would like the pic to be black and white and her leotard to remain pink.

    To colorize a B&W, please refer to my reply in the recent forum topic "Photo Elements 6.0 question" :  http://forums.adobe.com/thread/492539?tstart=0

  • Having a problem with image IO and drawing image

    My question did not come out on the other posting. I am getting them image from a JPanel. I then convert the image into a renderedimage. Use the ImageIO.write method to convert to png format. I don't want to save the image on the local disk so it is writted to a ByteArrayOutputStream. I get the bytes from this and insert this into a blob field type.
    Then to paint the image onto the JPanel I try two methods to paint it on to the JPanel. I set the JPanel to be the width and size of the image. But I am getting a null pointer exception and I can't figure out why. If anyone could give me any suggestions I would really appreciate it.
    rImage = convertToRenderedImage(draw.drawPanel.offScreen, width11, drawPanelHeight, type);
    try{
    bo = new ByteArrayOutputStream();
    ImageIO.write(rImage, "png", bo);
    imageBytes = bo.toByteArray();
    }catch(IOException iox3)
    System.err.println(iox3);
    PreparedStatement statement12 = connection.prepareStatement(
    "INSERT INTO feed VALUES(?,?,?,?,?,?);");
    statement12.setBytes(2, imageBytes);
    icon = new ImageIcon(rs.getBytes("file"));
    image = icon.getImage();
    //base is the JPanel
    Graphics g2d = base.getGraphics();
    bytes = rs.getBytes("file");
    bInput = new ByteArrayInputStream(bytes);
    try
    bImage = ImageIO.read(bInput);
    catch(IOException e21)
    System.out.println("Error in imageIO transformation");
    //image is Image and bimage is bufferedimage
    image = bImage;
    Graphics g2d = base.getGraphics();
    g2d.drawImage(image, 0, 0, base);
    g2d.drawImage(image, 0, 0, base);

    Would it be possible for you to send out a small runnable testcase that I could try out with?
    Thanks,
    Kannan

  • Value and image in commandButton

    Is there any way to get a commandButton to display both a value and an image?
    Thanks

    The commandButton just renders a HTML input type="button" element or input type="image" element, not both simultaneously.
    I suggest you to use CSS for a transparent background image of the button.

  • JPEG color difference between Adobe Raw and Microsoft Image Viewer

    When I calibrate my monitor or use the monitors ICC file which came with the Monitor, there is a color difference between Camera Raw image and the JPEG I save from Camera Raw, displayed in Microsoft Image Viewer.
    However, if I make my ICC file for the system to be SRGB Color Space Profile, and go through the same conversion, the JPEG image created and viewed in Microsoft Image viewer is identical to the one seen in Camera Raw.
    It appears therefore, that the operating system only uses SRGB Color Space profile for Microsoft Imaging Viewer?
    Most people I give photos to, do in fact look at them in microsoft viewer.
    How can I use the ICC profile for my calibrated monitor and end up with the same results in terms of color with Camera Raw and Microsoft image and Fax Viewer.

    All profiles are not created equal.  There's a basic version issue (ICC v4 vs. earlier), and profiles are complex things containing many fields.  Lots of things can go wrong in the creation of a proper color transform from the combination of the document and device profiles, and it kind of depends on what color management code the software uses whether it can be done properly.  Adobe has their own - the Adobe Color Engine - and there are others such as LittleCMS or even Microsoft's system-provided ICM that application designers may be using in their code.
    It may be that the profile your calibrator/profiler has produced for your monitor (or other device) isn't compatible with every application.  It happens.
    This isn't intended to provide a solution or workaround, just to help explain things a bit.
    -Noel

  • Color shift in cs3 and elements 7

    when loading an image into cs3 or elements 7 I am getting a large color shift to magenta and the image is getting very dark. I have reset the color settings and reset to default but no improvement in the images. the pictures look good in bridge or any other picture viewer on the computer. Any suggestions.

    I do not have access to the computer at this time but I set everything to default  srgb

  • Changing images' alpha value

    hi !
    let's say I got those two images
    Image img1,img2;I assign a different .gif file to both of them, and I paint them
    goes like...
    g.drawImage(img1,10,10,this);
    g.drawimage(img2,10,10,this);easy enough ?
    now what I'd like to do is to draw both image, but have img2
    semi-transparent, so that we could see img1 (drawn right under it)
    is there some kind of way to change an image's alpha value (I assume it's the way I should do it) using java programmation ?

    You can use a BufferedImage and read it using ImageIO. Create the image in TYPE_INT_ARGB format. Then you can actually access each pixel of the image and change its value. See the Java2D Tutorial (there's a Tutorials link on the left sidebar of this page).

  • To retain color space value for Monochrome images during flattening.

    In our project, we are extracting image content from PDF file and doing some raster operation by using LeadTool and then flattening the processed image in PDF file.
    Input PDf file: One page which has monochrome image
    For extracting image content from PDF file, we are using below Acro Plugin API:
    AVConversionConvertFromPDFWithHandler
    After this, we will perform some raster operations by using LeadTool and then flattening will happen.
    While doing flatten we are performing below operations in sequence:
    1. Set bitspercomponent  =1.
    2. Create a new color table using DeviceRGB.
    3. Create image by using below Acro Plugin API:
    pdeimage = PDEImageCreate(&attrs, sizeof(attrs), &matrix, 0, cols1, NULL, &fil, asstm, NULL, 0);
    4. Add image in PDF content.
    Now flattening is successful, but monochrome(Original Image format) is changed to RGB. We want to retain the color space(DeviceGrey).
    We have tried the below solution to retain the color space:
    1. Using the old image's color space value for new image creation. But this gives inverted color(Black to White and vice versa)
    Please help us to retain the color space while flattening.

    We are using JPG file format.
    Please find below the code portions which we used to add image in PDF file,
    //Read Image Data
    ========================================================================================== ==================
    ASBool ret = TRUE;
    // analyze img
    ASInt32 index = 0, quadSize = 0;
    BITMAPFILEHEADER* bmfh = NULL;
    // BITMAPFILEHEADER
    if(  !bQuadSize )
      bmfh = (BITMAPFILEHEADER*)img;
      index += sizeof(BITMAPFILEHEADER);
    // BITMAPINFOHEADER
    BITMAPINFOHEADER* bmih = (BITMAPINFOHEADER*)(img+index);
    index += sizeof(BITMAPINFOHEADER);
    // RGBQUAD
    if( !bQuadSize )
      quadSize = bmfh->bfOffBits - sizeof(BITMAPFILEHEADER) - sizeof(BITMAPINFOHEADER);
    else
      quadSize = size -  bmih->biSize -  bmih->biSizeImage;
    ASInt32 rgbquadNum = 0;
    char* quad = NULL;
    if (quadSize > 0)
      rgbquadNum = quadSize/sizeof(RGBQUAD);
      quad = (char*)(img+index);
      index += quadSize;
    // Image
    //ULONG imgSize = size - bmfh->bfOffBits;
    char* image = (img+index);
    DURING
       if(!pd)
        E_RETURN(FALSE);
       PDPage pp = PDDocAcquirePage(pd, page-1); // Get Page(PDPage) of specified page number
       PDEContent pdeContent = PDPageAcquirePDEContent(pp, gExtensionID); // Get PageContent(PDEContent)
       ASInt32 numElems = PDEContentGetNumElems(pdeContent);  // Get PageContent num
       // Check BitMap width, height, biXPelsPerMeter, biYPelsPerMeter changed
       ASFixedRect mb;
       PDPageGetMediaBox(pp, &mb);
       ASFixedRect chgMediaBox;
       memset(&chgMediaBox, 0 , sizeof(ASFixedRect));
       if (paperSizeChangeType == PAPERSIZE_SIZESPECIFICATION)
        chgMediaBox.right = width;
        chgMediaBox.top = height;
       // Get PDEImage's Attributes & Filters & ColorSpace from Old Image in PDF file
    ========================================================================================== ===================================
       PDEElement pdeElement;
       ASInt32 importIndex;
       ASInt32 type;
       PDEImageAttrs attrs1;
       PDEColorSpace cols1;
       //ASAtom colname;
       PDEFilterArray fil1[20];
       ASInt32 filNum1;
       ASFixedMatrix matrix1;
       bool isTransformedPage = false; //EV2.8.02000_19651_Retain color space_20141016
       for (int i = 0; i < numElems; i++)
        pdeElement = PDEContentGetElem(pdeContent, i);
        PDEObject obj=_objHelper.TraversePDPageContentsImage((PDEObject)pdeElement);
         if(obj == NULL)
          continue;
         pdeElement= (PDEElement)obj;
        type = PDEObjectGetType((PDEObject)pdeElement);
        if (type == kPDEImage)
         // Get Attr
         PDEImageGetAttrs((PDEImage)pdeElement, &attrs1, sizeof(PDEImageAttrs));
         // Get ColorSpace
         cols1 = PDEImageGetColorSpace((PDEImage)pdeElement);
         // Get Filter Array
         filNum1 = PDEImageGetFilterArray((PDEImage)pdeElement, fil1);
         // Get ASFixedMatrix
         PDEElementGetMatrix(pdeElement, &matrix1);
         //EV2.8.02000_19651_Retain color space_20141016 - Start
         if (matrix1.a < 0 || matrix1.b < 0 ||
                        matrix1.c < 0 || matrix1.d < 0 ||
                        matrix1.h < 0 || matrix1.v < 0)
          isTransformedPage = true;
         //EV2.8.02000_19651_Retain color space_20141016 - End
         // Set Import and Delete Index
         importIndex = i;
         break;
       // Create image data (for PDEImage)
    ========================================================================================== =================================
       ASInt32 bitPerComponent = bmih->biBitCount;
       ASInt32 bitWidth = 0;
       ASInt32 width1 = bmih->biWidth;
       ASInt32 height1 = bmih->biHeight;
       // Create image size
       if (bitPerComponent == 1)
        if (width1%8)
         bitWidth = (width1/8) + 1;
        else
         bitWidth = width1/8;
       else if (bitPerComponent == 4)
        if (width1%2)
         bitWidth = (width1/2)+1;
        else
         bitWidth = width1/2;
       else if (bitPerComponent == 8)
        bitWidth = width1;
       else if (bitPerComponent == 32)
        bitWidth = width1*4;
       else // if (bitPerComponent == 24)
        bitWidth = width1*3;
       ASInt32 imgSize4Acrobat = height1 * bitWidth;
       char* image4Acrobat = (char*)ASmalloc(imgSize4Acrobat);
       if( image4Acrobat == NULL )
        E_RETURN(FALSE);
       memset(image4Acrobat, 0, imgSize4Acrobat);
       // Create image
       ASInt32 nokori = (bitWidth)%4;
       ASInt32 bitWidth4hokan = 0;
       if (nokori)
        bitWidth4hokan = bitWidth + (4-nokori);
       else
        bitWidth4hokan = bitWidth;
       ASInt32 hbw = 0;
       ASInt32 hbw4hokan = 0;
       if (bitPerComponent == 1)
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         memcpy((image4Acrobat+hbw), (image+hbw4hokan), bitWidth);
       else if (bitPerComponent == 4)
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         memcpy((image4Acrobat+hbw), (image+hbw4hokan), bitWidth);
       else if (bitPerComponent == 8)
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         memcpy((image4Acrobat+hbw), (image+hbw4hokan), bitWidth);
       else if (bitPerComponent == 32)
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         for (int kk = 0; kk < bitWidth; kk += 4)
          *(image4Acrobat+hbw+kk) = *(image+hbw4hokan+(kk+3));
          *(image4Acrobat+hbw+kk+1) = *(image+hbw4hokan+(kk+2));
          *(image4Acrobat+hbw+kk+2) = *(image+hbw4hokan+(kk+1));
          *(image4Acrobat+hbw+kk+3) = *(image+hbw4hokan+(kk));
       else
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         for (int kk = 0; kk < bitWidth; kk += 3)
          *(image4Acrobat+hbw+kk) = *(image+hbw4hokan+(kk+2));
          *(image4Acrobat+hbw+kk+1) = *(image+hbw4hokan+(kk+1));
          *(image4Acrobat+hbw+kk+2) = *(image+hbw4hokan+(kk));
       //Invert Image Data
    ========================================================================================== ================================
       for(int it = 0; it < imgSize4Acrobat; it++)
          image4Acrobat[it] = 255 -image4Acrobat[it];
       // Open Image Data
    ========================================================================================== ================================
       ASStm asstm = ASMemStmRdOpen(image4Acrobat, imgSize4Acrobat);  
       // Create PDEImage Attribute etc.
    ========================================================================================== ================================
       PDEImageAttrs attrs;
       memset(&attrs, 0, sizeof(PDEImageAttrs)); // necessary
       attrs.width = width1;
       attrs.height = height1;
       if (bitPerComponent == 1) {
        attrs.bitsPerComponent = 1;
        if (rgbquadNum) {
         attrs.flags = kPDEImageIsIndexed | kPDEImageExternal; // Indicates image uses an indexed color space.
        } else {
         attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
         // B&W
       } else if (bitPerComponent == 4) {
        attrs.bitsPerComponent = 4;
        if (rgbquadNum) {
         attrs.flags = kPDEImageIsIndexed | kPDEImageExternal; // Indicates image uses an indexed color space.
        } else {
         attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
       } else if (bitPerComponent == 8) {
        attrs.bitsPerComponent = 8;
        if (rgbquadNum) {
         attrs.flags = kPDEImageIsIndexed | kPDEImageExternal; // Indicates image uses an indexed color space.
        } else {
         attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
       } else if (bitPerComponent == 32) {
        // not support (acrobat)
       } else { // (bitPerComponent == 24)
        attrs.flags = kPDEImageExternal;  // Indicates image is an XObject.
        attrs.bitsPerComponent = 8;
       // matrix
       ASFixedMatrix matrix;
       memcpy(&matrix, &matrix1, sizeof(matrix1));
       if (paperSizeChangeType == PAPERSIZE_SIZESPECIFICATION)
        matrix.a = chgMediaBox.right;
        matrix.b = 0;
        matrix.c = 0;
        matrix.d = chgMediaBox.top;
        matrix.h = 0;
        matrix.v = 0;
       // Filter
       PDEFilterArray fil;
       memset (&fil, 0, sizeof (PDEFilterArray));
       PDEFilterSpec spec;
       memset (&spec, 0, sizeof (PDEFilterSpec));
       memcpy(&fil, &fil1, sizeof(PDEFilterArray));
       CosDoc cosDoc;
       CosObj cosDict;
       // Build the CosObj for the filter specification
       cosDoc = PDDocGetCosDoc(pd);
       cosDict = CosNewDict(cosDoc, false, 2);
       CosDictPut(cosDict, ASAtomFromString("K"), CosNewInteger (cosDoc, false, -1));
       CosDictPut(cosDict, ASAtomFromString("Columns"), CosNewInteger (cosDoc, false, width1));
       //memset the filterspec so there are no garbage values if we leave members empty
       spec.encodeParms = cosDict;
       spec.decodeParms = cosDict;
       spec.name = ASAtomFromString("CCITTFaxDecode"); 
       fil.spec[0] = spec;
       // Create PDEImage
    ========================================================================================== =================================
       PDEImage pdeimage;
       pdeimage = PDEImageCreate(&attrs, sizeof(attrs), &matrix, 0, cols1, NULL, &fil, asstm, NULL, 0);
       // Delete PDEImage at importIndex(==j) of page -> Delete old image in PDF file
    ========================================================================================== ====================
       PDEContentRemoveElem(pdeContent, importIndex);
       // Add PDEImage
    ========================================================================================== ==========================
       PDEContentAddElem(pdeContent, importIndex, (PDEElement)pdeimage);
       PDPageSetPDEContent (pp, gExtensionID);
       PDPageReleasePDEContent(pp, gExtensionID);
       // Release object
       PDERelease((PDEObject)pdeimage);
       PDPageNotifyContentsDidChangeEx(pp, TRUE);
       PDPageRelease(pp);
       ASStmClose(asstm);
       if (image4Acrobat)
        ASfree(image4Acrobat);
       if (lookupTable)
        ASfree(lookupTable);
      HANDLER
       ret = FALSE;
      END_HANDLER
    return ret;

  • Apple's Alpha Transitions and Color Looks. How to Install and Use?

    A few months ago I downloaded the Alpha Transitions and Color Looks from the FCS3 website.
    I have just re-discovered the .dmgs on one of my hard drives but my memory is a complete blank!
    I cannot remember whether I used them or installed them but seem to recollect reading some instructions somewhere!
    Where should they be installed and is there any info on using them?
    (Possibly in a few more months I will come across this info that I may have downloaded originally).

    Digging around I found most of the answers so will add them here in case anyone else suffers from a similar memory to mine!
    The Color Looks .dmg contains the instructions, the main ones being:-
    To install the Color looks
    1  Locate the Color Looks folder in the image you downloaded.
    2  Select the individual folders in the Color Looks folder and copy them to /Users/username/Library/Application Support/Color/Effects/.
    The next time you open Color, the new looks will be available in organized folders in the Color FX bin, located in the Color FX room. Opening the individual folders with categories of looks such as "Blues and Greens" and "Glows" will reveal new Color looks presets that can be applied by double-clicking.
    If you like, you can move the default looks that come with Color into these folders, to keep everything organized. You can also save your own Color FX presets into these folders.
    As for the Alpha transitions, there is of course just one, found in the Wipes folder, which is modified using the media that comes in the download.

  • Drawing with an effect other than Alpha Transparency and XOR

    Hello,
    I'm looking for a way to draw images (Or anything else for that matter) with simple effects other than the Alpha and XOR effects, such as Multiply, Subtract and Bitwise AND. I've realized it has something to do with the setComposite function, but I haven't figured out how to get further from there, and the documentation didn't seem very clear. This is my first time using Java fro anything graphical; most of my projects are done in PHP and C++.
    Could anyone help me with this, perhaps with an example?
    Thank you very much!

    I'm using Graphics2D. I have one big BufferedImage and other smaller once which I use as sprites. I'm rendering the sprites to the big buffer using drawImage. I need an efficient way to render some of the sprites with an ink effect such as subtract. I know it's possible to do it with a XOR effect by placing setXORMode(c1) before the drawImage function.

  • Alpha value for image

    the alpha value of all pixels of many images(jpg,gif) is coming out to be same(ie 255).why is it so? does alpha value really represents intensity?

    What colour model are you thinking of? Perhaps you'd find the Color.RGBtoHSB method helpful?

  • How do I get a field to automatically select a value and change color based on another automatic field?

    Here is the situation:
    I have a row on a form called Finding Risk Rating. In this row are four fields: Probability, Severity, Risk Rating, Color.
    Probability is a drop down menu with the following values: 1, 2, 3, 4, 5
    Severity is a drop down menu with the following values: A, B, C, D, E
    Risk Rating is a field that I have a custom calculation script:
    var riskRating = this.getField("Probability").value+this.getField("Severity").value;
    event.value = riskRating;
    So, when I pick Probability = 1 and Severity = D, Risk Rating will automatically change to 1D, etc. This works fine on the surface as far as I can tell.
    The part where I am stuck, is the fourth field Color.
    Ideally, I want Color to be automatically populated depending on the value of Risk Rating. For example, for 1E I would want it to say "YELLOW" and the field to change color to yellow. For 1A it would be "GREEN" with the color green, etc.
    I tried doing an if else for all cases, but it never refreshes to the correct value. I then checked using app.alert to see what fields riskRating and colorRank are (see code below), and I noticed that riskRating never changes, even though the value in Risk Rating changes. Is there a way to order script(s) so that if I execute one, the other will follow? I'm new to scripting for forms and haven't done any programming in 10+ years, so feel free to rip my code in favor or something more efficient, or direct me to a good resource I can learn from.
    Here's the basis of what I have for scripting on Color. It's brief because I wanted to test it out before writing every 'if else' statement.
    var colorRank;
    var riskRating = this.getField("Risk Rating").value;
    if (riskRating = "1E") colorRank = "YELLOW";
    else if (riskRating = "1A") colorRank = "GREEN";
    else if (riskRating = "5A") colorRank = "RED";
    event.value = colorRank;
    app.alert("colorRank = " + colorRank + ", riskRating = " + riskRating);
    Any help is appreciated. Thanks!

    One problem is if more than one combo box item has the same number associated with it, you cannot simply set the export value to the corresponding number since they need to be unique (or the user interface behaves weird). One thing you can do is set up an object to associate a list item with a value, and look up the value in code when a list item is selected.
    For more information, see: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle

  • PSE 8 coloring a black and white image

    Okay, so I downloaded a free trial of PSE 8, so my experience with it is limited, which may contribute to my problem. I've watched tutorials on how to add color to a black and white photo using the paintbrush tool, though I haven't watched one for PSE 8.
    I'll make a new layer, paint part of the picture, and then add another layer. But when I click a different color to paint with, it changes the color of what I already painted, even though I'm on a different layer.
    Also when I tried to just save the image with one part painted, it didn't save it, and the image looked as it did originally.
    Any help is appreciated! Thanks!

    Hi,
    Are you using the right tool to paint on a layer?
    For coloring a black and white image, you need to save different areas of your image on a different layer and then use either Paint brush or a Paint bucket tool.
    It seems that you are selecting a wrong tool. For selecting Brush, press B.
    Then try painting on one part of the image and then go to the the color swatch present at the end of the tools panel on the left as :
    Now click on the foreground color swatch(on the top) to change the color with which you want to paint.This will not change the color of other layers on changing the color.
    Cheers
    Swarnima

  • How to set default value and bg color of cross tab cell?

    Hi all
    Which way can I set default value and background color for a crosstab cell where there are no any data?
    I try to pass it in following way
    if isnull(CurrentFieldValue) then
    But is has no effect.

    Hi,
    If your field is numeric
    if currentfieldvalue =0 then cryellow else crnocolor
    if the field is numeric but you don't see the 0 check check if : Suppress if zero is ticked in the Number format tab.
    Regards

  • How to create a matrix with constant values and multiply it with the output of adc

    How to create a matrix with constant values and multiply it with the output of adc 

    nitinkajay wrote:
    How to create a matrix with constant values and multiply it with the output of adc 
    Place array constant on diagram, drag a double to it, r-click "add dimension". There, a constant 2D double array, a matrix.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

Maybe you are looking for