"Vignette" into a bitmap image

I'm probably not describing this right (nor searching for it
right), but I'm looking for an example or some guidance on how to
create an object (sprite?) that acts as a window onto a larger
bitmap image (i.e., a vignette). For example, let's say I have a
50x500 bitmap that I want to display a 50x50 vignette, then be able
to change the "start position" so I can show any portion of the
50x500 bitmap, 50x50 at a time.
This seems like such a basic thing to do in Flex that I can't
help thinking I'm just missing something...
Any help would be greatly appreciated!

look for "mask" in the help.
"7of10" <[email protected]> wrote in message
news:gnnio0$o7g$[email protected]..
> I'm probably not describing this right (nor searching
for it right), but
> I'm
> looking for an example or some guidance on how to create
an object
> (sprite?)
> that acts as a window onto a larger bitmap image (i.e.,
a vignette). For
> example, let's say I have a 50x500 bitmap that I want to
display a 50x50
> vignette, then be able to change the "start position" so
I can show any
> portion
> of the 50x500 bitmap, 50x50 at a time.
>
> This seems like such a basic thing to do in Flex that I
can't help
> thinking
> I'm just missing something...
>
> Any help would be greatly appreciated!
>

Similar Messages

  • __Can I merge one large Bitmap image into another?

    __Can I merge one large Bitmap image into another?
    I have 2 very large hi-res Bitmaps that I want to merge together into 1 file without converting to grayscale or anything. The problem is the second Bitmap is like a 'patch' and I want to insert it into the other like a puzzle piece, while maintaining corect registration (the bitmaps combine to a 4 colour seperation).
    Thanks in advance!

    1bit Bitmap offers no layer capabilities so going through grayscale seems advisable. (Edit: Naturally one should at the end of the combination process convert to bitmap again.)
    Other than that you could after pasting remove parts of the pasted content with the selection tools (setting them to subtract with alt).

  • How to Convert Bitmap Images into WPF XAML files

    I am tasked with converting about twenty bitmap images into a workable XAML file complete with all of the path statements, line segments, arc segments, etc. Is there a tool out there that take the bitmap image and create an entirely new XAML file?
    Thanks,
    Barton

    Hi,
    maybe:
    http://stevenhollidge.blogspot.de/2012/05/converting-images-to-paths.html
    http://stackoverflow.com/questions/129972/convert-an-image-to-xaml
    http://stackoverflow.com/questions/15082716/can-we-convert-an-image-to-xaml-using-expression-blend
    this is not a trivial task [and maybe beyond the scope of this forum]. If you had some vector image like svg images there might be a control out to use, but with raster images, I dont know of any control or code to use; I *think*, you will have to vectorize
    the image content yourself, which isn't that easy...
    So, is Background and Foreground easily distinguishable? Do shapes overlap? ...
    If there are only some shapes in the image and BG and FG can be separated easily then you could "scan" the image by some chaincode like operation to get the contours/contour vectors and then decide what to do. If there are patterns in BG or FG
    things will become more difficult, you then will have to perform more math-to-image operations and a vector-representation while reading/scanning the image might not be enough (keywords are computer vision, pattern recognition [with multi-linear-forms] etc).
    Maybe an existing computer vision [-able] component loke opencv can help a lot...
    Edit: I just did a google lookup and found eg this:
    http://www.cs.ucla.edu/~dt/theses/vasilescu-thesis.pdf
    I havent read it so far, so I cannot say, if its what you need, but title and a quick view into looks promising/interesting.
    Regards,
      Thorsten

  • Using a script to get the color of a colorized Black & White Bitmap image

    I've been running into this wall for quite some time and would greatly appreciate any help that can given for it.
    I have an Illustrator script that runs inside of a BridgeTalk session within an InDesign script.  Yeah, it's complicated.  The upshot is that the Illustrator part opens up an EPS file, looks through all objects on a certain layer in that file, and returns an array of the colors used in it.  So, it looks at fill colors, stroke colors, gradient stops, etc.  One of the biggest stumbling blocks (next to PlugIn Items, which I'll ask about in a separate post) is getting the color of raster images.
    Most raster images, I realize, are going to be CMYK or RGB images, but our company mostly deals with either Grayscale images or Black & White Bitmaps that are embedded in the EPS file.  Those two allow the ability to colorize them by simply selecting them and then choosing a color, such as a spot PANTONE color from one of their color books.
    Now, I need the script to read the color that the raster image has been colorized with.  This works okay for images that have a GrayScale color space, as the script just looks at Colorant[0] of that image.  However, I run into a problem with Black & White Bitmap images.  Here's a piece of code that I try to make work with an EPS file that has a raster image:
    var document = app.activeDocument;
    for (var i = 0; i < document.layers[0].pageItems.length; i++) {
              // Stepping through each item on the layer.
              var currentItem = document.layers[0].pageItems[i];
              $.writeln("Current item is " + currentItem.typename);
              $.writeln("Number of channels is " + currentItem.channels);
              $.writeln("Color Space is " + currentItem.imageColorSpace);
              $.writeln("Colorized Grayscale? " + currentItem.colorizedGrayscale);
              $.writeln("Number of Colorants: " + currentItem.colorants.length);
              for (var j = 0; j < currentItem.colorants.length; j++)
                        $.writeln("Colorant number " + j + " is " + currentItem.colorants[j]);
              $.writeln("Its parent is " + currentItem.parent);
              $.writeln("Parent's typename is " + currentItem.parent.typename);
    This code runs successfully on an Illustrator file that has a Black & White Bitmap image on the top layer, but if you try and run it, you'll see the problem:  Even if you've colorized your Bitmap image with a PANTONE spot color (and the script even returns "true" on the line "Colorized Grayscale?"), Colorant number 0 is "Gray".  It should be the spot color assigned, not "Gray".
    Can anyone please help me figure out how to get the script to recognize the actual colorant of a Black & White Bitmap image in Illustrator?

    If you're a professional photographer with 50,000 pictures stored now and more coming all the time, you need to forget about using iPhoto and get yourself some professional-quality digital asset management software. iPhoto is not meant for people like you, and instead of providing a simple, elegant one-stop answer to all your needs, iPhoto is actually complicating your life.
    You need an application that will:
    - catalog ALL your images and keep track of where they are, no matter how many DVDs, folders, partitions or hard drives they're spread over;
    - display thumbnails of ALL of them, even when the DVD that contains them is not present in any drive, so you can select all the ones you want for a project;
    - find and copy (or export) the originals of all the files you've selected in the browser window, even if it means prompting you to insert the necessary DVDs for all of them.
    I suggest Googling "digital asset management software Macintosh" and seeing what turns up. I used to use an old version of Extensis Portfolio, and even that would have been better for your purposes than iPhoto is.

  • Bitmap images have grayscale settings

    I'm creating pdfs using Acrobat Standard 6.0 from Word documents. The documents contain images in color, grayscale and bitmap mode. For some reason the bitmap images in the final pdfs are not appearing as bitmaps but appear with the settings for the grayscale images. Meanwhile, the actual grayscale images appear with the color settings. The color images are fine. I've experimented with different resolutions for each type of image and each time the results follow the pattern described.
    I'd be interested to know where in the chain of events is the problem is occurring, or if anyone can suggest a way of trying to pin it down. I've tried two separate versions of Word, so I'm assuming the problem lies elsewhere.
    Thanks for any advice.

    Is there a way really one can use to convert bitmap
    images into vectored images?
    I ask this question in response to a problem that I
    have. I take photos using a camera of resolution 72
    pixels per inch and then process them in a program I
    have written in Java. I then print cards as the
    output of the system processing. The picture quality
    I then produce is a worry. The images are blurred and
    they rather look like zoomed bitmap images. Its not
    very disgusting but its something the clients are
    complaining about. And what makes you think that vectorizing an image is actually an improvement?
    Suggestions with regards to where I could be going
    wrong are very much welcome.Get a better camera.

  • Could work an animated flash bitmap image exported in html 5, in DPS ?

    I'm new in DPS, just started for a couple of weeks and I need to use a image in an animation.
    I created the animation in inDesign exported in .fla, used de toolkit js, load it in a container with web content overlay, and when I preview it with Adobe Content Viewer it doesn't work, it apears a blank screen. Neighter of animation from that stage won't work.
    To be very precise any animation works fine, when I test the html in a browser, the problem appears only in the content viewer.
    The animation is very simple: smal logo entering in the stage from the right, not very complex.
    I tried in flash with other images in a test file and loaded in inDesign, and still don't work. Other vector animation works well, no problem. I saw that if I have an image in library in flash and export a simple animation with a vector ball, won't work in indesign preview, with content viewer.
    My question is, Could work an animated flash bitmap image exported in html 5, in DPS ?  If so, what should I need to do ?
    Thank you in advance.

    Two possible solutions I was considering:
    1) In my index/first page, have all the swfs present (scaled to 1x1, behind something, or invisible) and have a preloader code on that first page... so all the content gets loaded before continuing onto the rest of the site.  That would certainly work in making the site run quick... but would mean a relatively lengthy wait at the start.  Luckily, unlike my current site, all the actual site content (aside from the header/nav interface) is HTML... so the bulk of the site's content is in the HTML pages, not as part of the Flash header... so it probably wouldn't be too horrific a wait.  However, it would be loading EIGHT of these swfs, since there are eight pages... so then maybe it would be....
    2) Have an swf that consists of just the 'draw up' of the interface, and it's idle state... then when each button is pressed, load a new swf to replace the main one, which has the specific page's animated title sequence, and ends with the code to load the html page.  So, each separate HTML page would have embedded into it only the main swf, and the title animation swf would be swapped in when a nav button is pressed.  Main issue here is each button press would envoke a preloader sequence (kind of tedious)... and unfortunately all the 'main interface' elements loaded in with the main swf would have to be loaded in again at the start of each animated title swf (although none of the draw up... just the loading of the interface and buttons).  For highspeed users, it should be okay, I guess....
    Thoughts or better ideas?

  • 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.

  • Poster Image in Strobe Player: Must it be a Bitmap Image?

    Hello,
    Quick question: must the poster image be a bitmap image in the Strobe and Flash players in OSMF?  I would like to use .jpg images because the quality is much better, etc.  When I try to create an image in Photoshop and convert it to a bitmap, the quality is very degraded and must be in black and white.
    Thanks so much.
    Jim

    Thanks very much for the reply.  I had uploaded a .gif, which didn't work, then went into the documentation and saw it written that poster images were bitmap images and assumed that meant that I need to use a bitmap in order for it to work.

  • How do I overlay n number of  bitmap images using Java.

    Hi All,
    I have a task of creating a composite bitmap or a .gif image from "n" number of bitmap images , so that the resulting composite image will look like as if all those "n" images were placed side by side . How can I achieve this ? Can you point me to some place where I can understand the concepts behind this?

    Create a new BufferedImage with the dimensions of all the images you want combined, then paint all the images into it through the Graphics object you can obtain from the BufferedImage. Then write out the image using the ImageIO class.

  • How Can I Clean up Imported Bitmap Images

    Hi, I am using Flash 5. I have imported a sequence of .png images and they are looking pretty rough and bitmapped so I wanted to clean them up.
    1. Do I have to select each frame after import and adjust the bitmap settings for each image or can I doo this somewhere so it affects al images?
    2. I can’t find the settings for cleaning up the bitmap images. I thought they would be in the “Properties” panel?
    3. Is there a way to fix the rasterization or clean up an imported .swf or is it better to clean up the sequence before saving as an .swf?

    Ned Murphy wrote:
    Ideally you should have images cleaned up/ properly sized / optimized before you import them into Flash.  Once they are in Flash, one thing you can do that can help how the image displays, especially if you manipulate its size while in Flash, is to set the image to allow smoothing.  This can be set using code or can be manually applied to the image in the library by right clicking it, selecting Properties, and checking the option to Allow Smoothing.
    Thanks Ned,
    Wow, exactly what I was looking for. Thanks. A huge improvement in the look of the gradients.

  • Outtputting Bitmap Images

    I have a project that requires we save a movieclip as a
    bitmap. I have researched this and found that I can convert the
    movieclip to a bitmap object and use the jpgencoder or pngencoder
    classes to convert the data to the correct format. However, my
    question is : can I get this to work locally through a flash
    application that is wrapped in a projecter file. IE save a bitmap
    file locally. I hope this is clear. Thanks.

    Is there a way really one can use to convert bitmap
    images into vectored images?
    I ask this question in response to a problem that I
    have. I take photos using a camera of resolution 72
    pixels per inch and then process them in a program I
    have written in Java. I then print cards as the
    output of the system processing. The picture quality
    I then produce is a worry. The images are blurred and
    they rather look like zoomed bitmap images. Its not
    very disgusting but its something the clients are
    complaining about. And what makes you think that vectorizing an image is actually an improvement?
    Suggestions with regards to where I could be going
    wrong are very much welcome.Get a better camera.

  • Bitmap images to Vectored images

    Is there a way really one can use to convert bitmap images into vectored images?
    I ask this question in response to a problem that I have. I take photos using a camera of resolution 72 pixels per inch and then process them in a program I have written in Java. I then print cards as the output of the system processing. The picture quality I then produce is a worry. The images are blurred and they rather look like zoomed bitmap images. Its not very disgusting but its something the clients are complaining about.
    I have tried editing the images in different photo editors but it still remains a question. I have tried to change the resolution of the images but still the problem persists. This the led me to thinking that the reasons could be:
    1. the printer I am using is printing at a different resolution with the resolution of the camera.
    2. the images are bitmaps and so since I am changing the height and width (propotionally though), that could be leading to distortion of the images slightly. Hence I am looking for a bitmap to vector image convetor.
    Suggestions with regards to where I could be going wrong are very much welcome.
    Thanx in advance
    kernan

    Is there a way really one can use to convert bitmap
    images into vectored images?
    I ask this question in response to a problem that I
    have. I take photos using a camera of resolution 72
    pixels per inch and then process them in a program I
    have written in Java. I then print cards as the
    output of the system processing. The picture quality
    I then produce is a worry. The images are blurred and
    they rather look like zoomed bitmap images. Its not
    very disgusting but its something the clients are
    complaining about. And what makes you think that vectorizing an image is actually an improvement?
    Suggestions with regards to where I could be going
    wrong are very much welcome.Get a better camera.

  • Please incorporate the Crop & Erase facilities on Bitmap Images in the upcoming version of ai CS7

    Please incorporate the Crop & Erase facilities on Bitmap Images in the upcoming version of Illustrator CS7.

    At first I was for Illustrator to have a page layout capability and made a feature request to that regard then I obtain Quark and came to the forum and thought well I have that capability and then I realized there were other users that needed Illustrator for layouts and so I backed users like Gary Newman who as i recalled were for multiple pages in Illustrator but I was against making Illustrator a page layout application since it was not designed for it but thought it should have a page making tool but thought it should be one that offer multiple size pages or if you wish multiple size documents within a document.
    When they introduce artboards I pointed out that this tooll offered the possibility for a multiple page capability that was more than just pages since you could make pages or if you prefer different size doicuments within one document and then suggest the ability to ba able to name the artboards, like Letterhead, Envelope, Business Card, Mailing Label etc abnd the ability to rearrange them at the moment my most recent suggestion is Master Artboards.
    The reason for artboards instead of just a page layout mechanism is one that already exist in ID and two the user of illustrator are artist that Illustrate or work with Illustration or artwork that is often used with ext and photos but are not necessarily page layout designers andmore than likely would employ the use of text to work with a specific Illustration or group of illustrations where the text and art might be integrated as a work into itself as opposed to an element on a page and that might often be the end design of that page. Such as a childrens book!
    I was never opposed to the feature of being able to output pages from Illustrator I am opposed to amking it a page layout application and now tith the Cloud which will give Adobe the opportunity to build a modular suite of creation tools it will be even less necessary, the Multiple art feature will develop in my opinion and will include supoport for die cutting as well as packaging tools. Those tools will relate to Illustrator and may eventually give way to a new way to cross application tools.
    The Future is coming soon at a Cloud near you, soon is like ten years or so.

  • 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.

  • Overlay bitmap image onto video

    I'm just starting to play around with the image overlay functions the vision toolkit provides, but one issue has stumped me early on. We are capturing VGA video and want to overlay a bitmap image of a graph built from the data collected. The image right now is 400x144, which should be small enough to fit into the video's 640x480 frame. I thought this would be a simple plug-and-play procedure where I could take a bitmap file, read it, and overlay it, but it seems that is not the case. The bitmap overlay VI requires the array from the bitmap to be two dimensional, while the read bitmap file VI puts out the information in a 1D array. I've tried reshaping the array into two dimensions, but the closest I have been able to come can be seen in the graph example picture below, while the actual graph I wish to display is labeled export. Any ideas on how to cleanly display this image?

    Hey totally_wired,
    Have you seen our image overlay examples
    on the NI Developer Zone? Be sure to check out the common
    questions and issues for the image overlay functions as well.  If you have the Vision Development Module
    software, these examples
    may also be helpful.
    Could you send your VI so that we can take a look at how
    exactly you are doing the overlay? It never hurts to have a second (or Nth) set
    of eyes look at it

Maybe you are looking for