Scaling 1-bit bitonal black and white images

I have an image of a document that was scanned
black-and-white (1-bit color depth) that I need to display and
scale. When I use Flex's built in Image.Scale it scales very
"choppy" and unreadable. When I scale the same image in Photoshop,
it seems to use much more antialiasing, and the form is clearly
recognizable, even at just 125 pixels wide.
Is there a way to get Flex to use a better scaling algorithm
for 1-bit images? It seems to do a smashing-good job with
full-color image scaling.

thx for answering
You understood right, I have enough memory for saving 1-bit images, but
Graphics.drawImage(Image img, int x, int y, int anchor) can draw only RGB images so each time I want to draw some image, I have to remake 1-bit images into RGB images, it takes a lot time, so I need to make some optimization
My application draws symbols, but symbols are presented by Glyphs, so I draw some black&white Glyphs

Similar Messages

  • 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

  • Inverted black and white images in iPhoto 6

    After I recently upgraded to OS X 10.4.8, a number of black and white images in my iPhoto 6 library started showing up inverted (like negatives) when I open them. The thumbnails, however, are in regular black and white. This didn't happen using OS X 10.4.3. I can't seem to find a tool in iPhoto 6 to convert these images to the correct display. Do you have any explanations or suggestions?
    Macintosh PowerPC G5   Mac OS X (10.4.8)  

    iPhoto 6 does not work well with Grayscale. You'll need to convert them to sRGB. They'll still be black & white, but they'll have a color profile that iPhoto 6 will accept. Old Toad created an Automator application to embed the sRGB profile into your photos. Go to his Toad's Cellar and download the "Embed wRGB Color Profile 2" App. In Finder go in your Originals folder, then drop a roll folder containing these photos onto the app.
    http://homepage.mac.com/WebObjects/FileSharing.woa/wa/default?user=toad.hall&tem platefn=FileSharing7.html&xmlfn=TKDocument.7.xml&sitefn=RootSite.xml&aff=consume r&cty=US&lang=en#

  • I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guess

    I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guessing it's Illustrator's formatting but I don't know. How can I find out if Illustrator will open the file and allow alterations? The image opens only in Apple's Pages software?

    rons,
    It seems that all you have is a raster image, presumable PNG24 or JPEG, in RGB.
    It may have been created as raster artwork in Photoshop, or it may have been created as vector artwork with the help of Illy, or as a mixture of vector and raster artwork in either application, or both combined.
    If you just need to have a raster representation in black and white based on the current colour image, you may try this, in a new RGB document (View>Smart Guides are your friends):
    1) File>Place the image (you may tick Link or untick and have it embedded);
    2) Create a rectangle with black fill (R = G = B = 0), at least as large as the image, and place it behind the image (you may ClickDrag with the Rectangle Tool between opposite corners, then Ctrl/Cmd+X+B);
    3) Select all and in the Transparnecy palette flyout click Make Opacity Mask with both Clip and Invert Mask ticked.

  • How can I create a black and white image similar to what I see in the "Replace Color" tool?

    Hi all, I'm just wondering how I can create a black and white image similar to what I see in the preview window of the "Replace Color" tool. See attached screenshot for clarification -- I need the grass to be black while the soil is white or vice versa. Any tips?

    One way is to use Select>Color Range
    Make a new Color Fill Layer>White
    (Layer>New Fill Layer>Solid Color)
    Put a new color fill layer below>black
    Just invert the layer mask on the top fill layer for the opposite effect.

  • "warming up" a black and white image pse6

    is there a way to change the tone of a black and white image to mimic the effect of using warm-tone photographic paper?

    Mike,
    I'm not sure what you mean by warm-tone photographic paper, but here are 2 methods I use to convert a picture to a sepia tone. They might work in your case.
    For both methods, first convert the picture to RGB mode if not already so (Image>Mode>RGB Color).
    Method 1
    Add a Hue/Saturation adjustment layer. In the Hue/Saturation dialog window, check the Colorize box and play around with the 3 sliders. If the result is too harsh, try lowering the layer's Opacity.
    Method 2
    Set the background color to white (you can type "d" to set the default B&W colors). Use the Color Picker to set the foreground color to the tone you want.
    Add a Gradient Map adjustment layer with the Color Blend Mode. In the Gradient Map window select the Foreground to Background option. If the result is too harsh, try lowering the layer's Opacity. You might also try changing the layer's Blend Mode to Multiply or Soft Light (or others) to get a slightly different look.

  • Black and white image

    How can i change image to black and white?

    Answer : Link: [http://stackoverflow.com/questions/3333652/load-image-from-photo-library]
    Message was edited by: sajjadzare

  • How to identify black and white images for dynamic collection ?

    Hello
    I would like to make a dynamic collection to quickly find my black & white pictures. It is very easy to do with your original files which have undergone a black and white (Grey) conversion under the developpement module : you have to specify "treatment - is - Grey level" in the dynamic collection description.
    But what about original Grey levels images ? I have some scans of black and white negatives, and I would like to see them in the same collection.
    I have tried to use EXIF metada, but none of them is related to this information (neither does IPTC). But such images are well detected as Grey levels images in the development module...
    I don't know how to do (unless manually tagging images of course).
    Does anybody have a clue for an automated solution ?
    Thanks
    Erwann

    yes Eclipse 2.0 provides runtime chartting.
    Please refer to this thread
    [chartting|Re: Charts won't appear in CR Viewer?]
    void AddChart(ReportClientDocument clientDoc, String chartTitle)
      ChartDefinition chartDefinition = new ChartDefinition();
      chartDefinition.setChartType(ChartType.group);
      IDataDefinition dataDefinition = clientDoc.getDataDefController().getDataDefinition();
      Fields conditionFields = new Fields();
      IField field = dataDefinition.getGroups().getGroup(0).getConditionField();
      conditionFields.addElement(field);
      chartDefinition.setConditionFields(conditionFields);
      Fields dataFields = new Fields();
      for (int i = 0; i < dataDefinition.getSummaryFields().size(); i++)
        IField summaryField = dataDefinition.getSummaryFields().getField(i);
        dataFields.addElement(summaryField); 
      chartDefinition.setDataFields(dataFields);
      ChartObject chartObject = new ChartObject();
      chartObject.setChartDefinition(chartDefinition);
      ChartStyleType chartStyleType = ChartStyleType.pie;
      AreaSectionKind chartPlacement = AreaSectionKind.pageHeader;
      chartObject.getChartStyle().setType(chartStyleType);
      chartObject.setChartReportArea(chartPlacement);
      chartObject.getChartStyle().getTextOptions().setTitle(chartTitle);
      chartObject.setHeight(5000);
      chartObject.setWidth(5000);
      chartObject.setTop(1000);
      IArea reportHeaderArea = reportDefController.getReportDefinition().getReportHeaderArea();
      Section chartSection =(Section)reportHeaderArea.getSections().getSection(0);
      clientDoc.getReportDefController().getReportObjectController().add(chartObject, chartSection, 1);
    Further you can format the fields as per your requirement.
    Hope this helps
    Regards,
    Tej

  • Black and white images appearing sepia online

    While editing i've made images black and white in lightroom. In my catalog they show black and white, in folders on my computer they show black and white.
    However for some reason when I load them online, some of them will show with a sepia/brown tone.
    It's only happening with a select few of the images and I can't figure out why.
    At first I thought it was maybe a problem with blogger, but the images in question are loading sepia toned on Facebook as well.
    I'm not applying any special features during export, adding tints, or changing color tone. And as I said, it's not happening to all of them.
    You can see an example at this link :Rachel Mariesa Photography: Brett & Emma
    The first black and white worked fine, and the rest are sepia looking.
    Any suggestions would be welcomed, as this is very frustrating!

    Ge Te
    The problem isn;t that the images are black and white, but more likely that they have a greyscale color profile. iPhoto only supports RGB, so attach an RGB profile to the images and they will display correctly.
    Regards
    TD

  • G4 display is suddenly negative black and white image...

    As I run out to work, I notice this strange appearance on the monitor. Negative black and white for everything on the monitor. Does anyone know what causes this or how to switch back to normal?
    Power Mac G4   Mac OS X (10.2.x)  
    Power Mac G4    

    Hello Frank and welcome to discussions,
    Try this key stroke...
    Hold down the Control Option Apple keys then hit 8. This will toggle the effect as well.
    Control + Option + Apple then hit 8.
    Hope that helps some
    Cheers
    Ian

  • Printer prints only black and white images from MacBook Air

    I tried printing the same file with the PC and it prints ok. Whenever I print with our MacBook Air, it only prints black and white and yes it has a driver automatically installed and updated.
    Printer model: HP Deskjet 4620 series

    Hey ChloeAmby,
    The article linked below details a number of troubleshooting steps that can help resolve issues with printing from your MacBook Air.
    Get help resolving printer issues on your Mac
    https://support.apple.com/en-us/HT203343
    All my best,
    Allen

  • 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

  • Black and white image scaling

    i have a list of bufferedimages of characters of various sizes of say 20x15 or 15x8 etc
    i want to convert them to uniform size of 10x10
    but when i tried to scale them using affinetransform.scale() wat i get is black boxes of size 10x10

    a part of the code is given below here characters is arraylist containing buffered images
    public void actionPerformed(ActionEvent e)
    int i,j,k,w,h;
    double w_scale=1.0,h_scale=1.0;
    drawimage=2;
    byte[] comp = {0 , -1};
    IndexColorModel cm = new IndexColorModel(2,2,comp,comp,comp);
    BufferedImage temp1=new BufferedImage(10,10,BufferedImage.TYPE_BYTE_INDEXED,cm);
    for(k=0;k<characters.size();k++)
    BufferedImage temp=(BufferedImage)characters.get(k); //characters is ArrayList
    w=temp.getWidth();
    h=temp.getHeight();
    if(w>=10 && h>=10)
    w_scale=10/w;
    h_scale=10/h;
    else if(w<10 && h>=10)
    w_scale=1.0;
    h_scale=10/h;
    else if(w<10 && h<10)
    h_scale=10/h;
    w_scale=1.0;
    else if(w>=10 && h<10)
    w_scale=10/w;
    h_scale=10/h;
    AffineTransform t=new AffineTransform();
    t=AffineTransform.getScaleInstance(w_scale,h_scale);
    Graphics2D g=temp1.createGraphics();
    g.drawImage(temp,t,null);
    g.dispose();
    small_list.add(temp1);
    repaint();
    }

  • Creating a stamp or brush from black and white image

    Once befoe I imported a file from my genealogy file and it came in with a transparent backgrount.  It is a black document with a white background.  I exported it from a Family Tree Maker file.  I'm not sure how I changed the  background to be transparent.  I was using PSE 6 then.  When I pulled on into PSE 9 it keeps the white background.  I have an option to export the file from Family Tree Maker I have several file options, pdf, jpg, bmp, png, or emf.  I have tried all but emf.  Is there a way to create the "stamp" or "brush" from the black printed portion of the image?

    When you have the file opened in PSE, double-click on the background layer to convert it into a regular layer.  Then you can use the Magic Wand tool to select the white area (de-select the "Contiguous" option, and use a high tolerance value of 85 or so).  Hit your Delete key and you'll have a transparent background.  Then save it as a PNG file, which will preserve the transparency.
    Is that what you're looking for?
    Ken

  • For black and white images in technical manuals, which format do you prefer?

    So, I'm new at this company, and the person who is training me uses the EMF format for the images on the manuals.
    Do you think a PNG file would be a better option for illustrations?

    > ... 90% of the manuals are digital (burned into a CD)
    Presumably as PDFs, which the ends users then either view on line or print locally?
    > ... and 10% are printed in grayscale.
    On what type of press?
    You probably want the images optimized for on-line viewing.
    In the case of line art, this means staying in vector form, so that it scales cleanly, and using a stroke weight that is optimized for typical resolutions and convenience printing.
    In the case of raster art, this means having enough resolution to maintain detail at reasonable zoom, and on convenience printers.
    For vector, we normalize stroke weights to about 0.2 point, save as EPS and import the EPS. On Frame versions later than 7.x, PDF import might also be stable, and preserves vector as vector. SVG I haven't tested.
    For raster contone (grayscale or color), avoid JPEG in the workflow. It is lossy and introduces artifacts. Never use it for screen shots or scans. Even if your camera image is JPG, convert it to an uncompressed form during edit and post-processing, such as PSD. Our target delivery resolution for contone is 200 dpi. This is slightly more than our press can resolve, but provides a bit of zoom for PDF viewing. We save the final images as EPS, and import those. TIF is also OK for this application (uncompressed). We select the compression level during PDF generation.
    For bitmap images, again avoid JPG. We optimize these for 600 dpi (our press resolution), save and import them as TIF (EPS is really clumsy for bitmap).
    EPS is a bit annoying to work with in Frame, as what you see during edit is a thumbnail or preview (72 dpi), but what renders to Ps or PDF is original vector or full raster. But EPS is fast, rock solid, and (if you need it) can preserve original CMYK color into the Ps or PDF.

Maybe you are looking for

  • Is there a way to allow the user to highlight portions of text like in acrobat?

    I am new to captivate, I was wondering if it is possible to allow the end user to select portions of text on a slide for highlighting purposes like you can do in acrobat or word?

  • Mac Pro and 1080 LCD projector

    I have had little success getting a Hi Def LCD projector to display correct resolution from a MacPro simultaneously running a 23" display from the video card. The Projector displays an extremely pixelated image, while the 23" Apple Display reduces it

  • How to create an array of generics?

    I have the following snippet of code using array of vectors: Vector[] tmpArr = new Vector[n]; for(int j=0; j<n; j++) tmpArr[j] = new Vector(); String str = ... if (!tmpArr[j].contains(str)) tmpArr[j].add(str); And I want to convert to generics: Vecto

  • Write to measuremen​t file VI - every second, is that too fast ?

    I use the write to measurement file VI to save 5 values + a comment to a file. The VI is in a loop. The VI adds new values to the same file every time it is called. In one of the tutorials it is said "VIs can be more efficient if you avoid opening an

  • Error in PKGBUILD - please educate me

    Hello, I'm trying to install a Package from AUR, but it seems that the PKGBUILD contains an error or at least something that is an error now. As the package is quite old and I want to understand AUR, I would like to fix that myself (with help from th