Record Mic using SampleDataEvent works only on some computers.

I made a swf that records your mic and allows you to play it back.  I load the soundBytes into a float and play the float back.  It works fine on the computer I developed it on (in IE, Chrome and Firefox) .  It does not work on my second laptop.  And a few people in some forums have said it is not working either.
Here is the file.  http://www.buttonbeats.com/images/MicCapture.html
Here is the code.  Do I need certain plugins besides the flash player?
micRec.addEventListener(MouseEvent.CLICK,recordMic);
function recordMic(event:MouseEvent){
micRec.x = -250;
stopRecord.x = 0;
const DELAY_LENGTH:int = 4000;
var mic:Microphone = Microphone.getMicrophone();
mic.setSilenceLevel(0, DELAY_LENGTH);
mic.gain = 80;
mic.rate = 40;
mic.addEventListener(SampleDataEvent.SAMPLE_DATA, micSampleDataHandler);
stopRecord.addEventListener(MouseEvent.CLICK,SREC);
var soundBytes:ByteArray = new ByteArray();
function micSampleDataHandler(event:SampleDataEvent):void
    while(event.data.bytesAvailable)
        var sample:Number = event.data.readFloat();
        soundBytes.writeFloat(sample);
function SREC(event:MouseEvent):void
stopRecord.x = -250;
    mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, micSampleDataHandler);
    soundBytes.position = 0;
    var sound:Sound = new Sound();
    sound.addEventListener(SampleDataEvent.SAMPLE_DATA, playbackSampleHandler);
soundPlay.addEventListener(MouseEvent.CLICK,SP1);
function SP1(event:MouseEvent){
  soundBytes.position = 0;
    sound.play();
function playbackSampleHandler(event:SampleDataEvent):void
    for (var i:int = 0; i < 8192 && soundBytes.bytesAvailable > 0; i++)
        var sample:Number = soundBytes.readFloat();
        event.data.writeFloat(sample);
        event.data.writeFloat(sample);

you need fp 10.  what's the problematic player version?

Similar Messages

  • Can anyone tell me why my various Mice seem to work only part of the time..

    Hello All...
    I'm having some trouble with my new MacBook(s). I have two different Mice (one wired... one wireless) all via USB and they work only "sometimes"...
    When they do work (about 1 in 12 times) they stop after the computer goes to sleep... when I wake everything up... the mice do not respond...
    Strange...
    Hopefully this is simple to fix/modify...
    Thanks...
    mls
    [email protected]
    www.av123.com
    MacBook   Mac OS X (10.4.7)  

    Welcome to
    the discussions!
    Which mice are you having trouble with?
    Hi Eric... thanks for your reply...
    I have a SONY Vaio mouse PCGA-UMS3 and a Logitech Wireless mouse... (sorry no model number here with me at the moment)...
    Both of these work perfectly with ALL of my PowerBook G4's... (I have 5 of these in various locations...)...
    I'm really baffled by this... They just do not work --- or work for short intervals only... very odd...
    I'd love to hear any ideas here...
    With humble thanks...
    mls

  • IMessage works only with some contacts

    Why is iMessage working (blue) with some contacts and not with others? Obviously all with iPhones and iMessage activated

    Hi there Bretsinclair,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    -Griff W. 

  • HELP! Flash header cutting off, but only on some computers

    http://www.omsstrategicadvisors.com/
    Our site has been up for approx 9 months and there's been no problem. Now all of a sudden, on SOME computers that were perfectly fine, the flash header is getting cut off.   Well, I guess magnified is a better description...
      I have not been able to recreate the issue on my screen. All the "guilty" computers have ie8, while I am stubbornly still on ie7, which is why I was thinking ie8 might be the culprit. However my bus. partner has multiple systems running and it looks perfectly fine on ie8, chrome, and firefox. Even problem computers have moments of clarity, for instance it happened on my husband’s pc then I refreshed the images and it corrected itself.  Then at the customer site, I opened the url on one of the “offending” computers, it was cut off again until I logged in…then it corrected itself immediately.  But when I tried that on the computer I am testing today, it did not work.  Then I was checking the Compatibility View Settings within ie8, I unchecked the box regarding Intranets, and it worked.  Thinking I’d found something, I went back in and re-checked it, and the problem was back, ok….now I really thought I was getting somewhere.  But when I went in again and un-check the box….nothing…still wrong.  Over the past 2 days, I’ve updated their Flash Players,  made sure all the images were the same size, deleted and re-uploaded the pix and xml files, contacted the skin author, anything I could think of.  The author also checked all the CSS and site setting, everything looked in order.  Also tried using the Compatibility View feature, setting that site to only be shown in IE 7, it did not work, which makes me think maybe it’s not the browser. I just attempted to back the computer down to an earlier version of Flash Player (9 as opposed to 10.1).  Also did not work.
    Of course, the client is freaking thinking about the big client that is due to check them out this week.  I’ve been searching every support/community forum looking for someone else with this problem…if you have any answers or know of any better places for me to look, please let me know.
    Any help is truly appreciated.

    Hi, I just checked your site and it looked good to me, headers changing nicely and no glitches. The header and the body of the site filled my 19" monitor which I use with my work computer. XP/SP3/IE6 with Flash Player 10.1.82.76. Yes that is IE6:-) In your screen shot, there are extra wide margins(empty space) on the left and the right side. And it blocks the text. That did not appear when I went to the site. However there was extra space on the left and right sides both, but not so much that the entire text could not be seen. On www.bing.com the site comes much closer to the scroll bar. 
    Your Tech experience is way above my head as I am not into what you do. However I do pretty well at researching so I'll see what I can find that might point you into the right direction.
    My only observation is that this happened "all of a sudden". Some kind of change must have happened. Could a user have made a change on the computers that are having this issue? Some Anti-Virus update?
    I don't really think it is Flash Player related and for this reason: It is not consistent. Most all of the time some program with certain add ons into the browser, especially Anti-Virus add ons are what affects the Flash Player ActiveX Control that is in the browser. Flash Player is a browser plugin so any add on in the browser is a negative or a positive.
    You may want to use the Adobe SEARCH field or the SEARCH at the top for Forums. You would know what key words would work best. The Forum SEARCH may be better to use since it covers all Adobe Product Forums.
    Thanks,
    eidnolb
    Message was edited by: eidnolb   correct spelling

  • Word 2010 - Extra Space Around Checkbox Content Controls - only on some computers

    I am experiencing a problem with Word 2010 adding extra above/below spacing on content control checkboxes, but only on some of our computers. We have a template we use that is the same file for our network. On some of the computers in our office however,
    we get extra spacing what can not be removed.  
    I am at a lose to fix this and have been trying for about 3 weeks. The settings are the same on all the computers. The user can switch to another computer and the form will open correctly, but if they move back to their workstation and try to reopen it there
    the double spacing returns - again only for the checkbox content controls. 
    Attached are two images - Correct formatting, and then what happens on some of the computers. Any assistance would be greatly appreciated. 
    Can't post links due to account not verified
    Correct Formating Image - https://drive.google.com/file/d/0BzORWKV0f6tjWjdaTGxTd0tWeUk/view?usp=sharing
    Extra Space Added on Some Comptuers Image - https://drive.google.com/file/d/0BzORWKV0f6tjOU8wYXp0d1ZZVDA/view?usp=sharing

    Some issues worth noting:
    1. Word uses information returned by the active printer driver to manage a document's layout. This can result in line spacing, text-wrapping, and so on varying from one PC to the next - or even on the same PC when switching to a printer that uses a different
    driver.
    2. Differences in font versions (or the use of a font that is available on one PC and not another) can result in line spacing, text-wrapping, and so on varying from one PC to the next.
    3. Differences in Word version (or even update state) may result in line spacing, text-wrapping, and so on varying from one PC to the next.
    4. Your document that displays the extra spacing has Word's formatting display switched on - even that can change the appearance if the document contains hidden content.
    5. Various Word options can also affect line spacing, text-wrapping, and so on. These include having Word configured to 'optimize character positioning for layout rather than readability', 'scale content for A4 or 8.5x11" paper sizes' and, perhaps,
    the use of draft print quality.
    Obviously, there are multiple possibilities to work through, ensuring all PCs & printer configurations are the same. That said, your use of tables allows you the option of setting the row heights to 'exact' measurements, so they won't expand as they
    evidently now can. You can also try setting the paragraph line spacings and before/after spacings to precise numbers of points, for example, so they don't auto-adjust.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • IWeb site displaying text only on some computers

    I just created a site in iWeb (latest version).  When I upload the site to server, it works fine for some people but not others; test on an iWeb page is viewable by some but not all users.  I used a web-safe font.  Can't figure it out.  Help!!!!!

    That ain't right! What you need to do is use web-safe fonts...
    http://www.iwebformusicians.com/iWeb/Fonts-Colors.html
    ... and a few other tricks to cope with IE...
    http://www.iwebformusicians.com/iWeb/iWeb-Internet-Explorer.html
    http://www.iwebformusicians.com/iWeb/Browser-Compatibility.html

  • Applescript prompting user to save only on some computers

    I have an applescript that does some workflow on some images. One some computers, the script completes just fine (opens a RAW file and saves a JPG), on others, Photoshop is prompting the user w/ the Save dialog box instead of just saving and closing the document. Is there a preference I'm missing that forces that save dialog box to always show instead of just proceeding with the script?
    Save script snippet
    open thePhoto as Camera RAW with options {class:Camera RAW open options, bits per channel:eight}
    set myJPGPath to dropLocation & nameWithoutExtension & ".jpg"
    set myOptions to {class:JPEG save options, embed color profile:true, format options:progressive, quality:12, scans:3}
    save current document in file myJPGPath as JPEG with options myOptions appending no extension without copying
    close document 1 saving no

    Have a look in the dictionnary for preferences (script preference): "user interaction level.
    You can check on each station for this property and be sure it's the source of the problem.
    I had this problem because i had some script that was setting it to "never interact" (in a batch, you dont want to handle "link missing dialog by exemple) but was not setting it back to "interact with all" (wich can be a problem depending of the scenario you are handling).

  • Valuechange listener works only for some components in page

    This is a portion of XHTML, which is that included into the page. It hash 2 <h:selectOneRadio> which have the same listener, but only in the first case the method is called right after user changes value of radio. In the second case its triggered only when submiting the form.
    *<h:selectOneRadio id="workType"*
    *valueChangeListener="#{orderingPage.valueChanged}"*
    *value="#{orderingPage.ordering.orderedObject.workType}"*
    *layout="pageDirection">*
    *<f:selectItem itemLabel="#{enums['WorkType.scan']}" itemValue="SCAN" />*
    *<f:selectItem itemLabel="#{enums['WorkType.filmcopy']}"*
    *itemValue="FILMCOPY" />*
    *<f:selectItem itemLabel="#{enums['WorkType.papercopy']}"*
    *itemValue="PAPERCOPY" />*
    *<f:selectItem itemLabel="#{enums['WorkType.print']}" itemValue="PRINT" />*
    *<f:selectItem itemLabel="#{enums['WorkType.readerPrinter']}"*
    *itemValue="READER_PRINTER" />*
    *<f:selectItem itemLabel="#{enums['WorkType.photo']}" itemValue="PHOTO" />*
    *<f:ajax*
    *render="scanTypesGrid copyFormatGrid copyColorGrid deliveryTypeGrid" />*
    *</h:selectOneRadio>*
    *<h:panelGroup id="copyFormatGrid">*
    *<h:selectOneRadio layout="pageDirection"*
    *value="#{orderingPage.ordering.orderedObject.copyFormat}"*
    *valueChangeListener="#{orderingPage.valueChanged}"*
    *rendered="#{(orderingPage.ordering.orderedObject.workType == 'PAPERCOPY') or (orderingPage.ordering.orderedObject.workType == 'PRINT')}">*
    *<f:selectItem itemLabel="#{enums['PaperCopyFormat.a0']}" itemValue="A0" />*
    *<f:selectItem itemLabel="#{enums['PaperCopyFormat.a1']}" itemValue="A1" />*
    *<f:selectItem itemLabel="#{enums['PaperCopyFormat.a2']}" itemValue="A2" />*
    *<f:selectItem itemLabel="#{enums['PaperCopyFormat.a3']}" itemValue="A3" />*
    *<f:selectItem itemLabel="#{enums['PaperCopyFormat.a4']}" itemValue="A4" />*
    *</h:selectOneRadio>*
    Can't see anything, why also the 2nd should not be working fine. Generally in this page i have some listeners working, some not, don't know why.
    thanks for help!
    PS: I use primefaces 2.2.1 and jsf-api 2.1.2
    Edited by: 851668 on 17.11.2011 08:06
    Edited by: 851668 on 17.11.2011 08:08

    Note that the first has an f:ajax attached to it and the second does not.

  • On-demand process query works only on some columns

    I've run into what seems a strange problem. I have an on-demand process that queries the DB and returns a populated select list, which I've successfully used in several places. The query used returns values as it should when I query the DB directly. Within my process however, it returns no rows. I know the process works because if I replace the query that i need, with one on another column in same table, my select list populates. There are several other columns that also don't work, though there is no pattern in terms of data type, size, etc, that I can see, except that the non-working columns are rather far down a list of over 30 columns for that table.
    Here is the process text:
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    for rec in (select distinct op_comm d, op_comm r from CPUJAN2006
    where upper(stream) = upper(:P100_TEMP_STREAM))
    loop
    htp.prn('<option value="' || rec.r || '">' || rec.d || '</option>');
    end loop;
    htp.prn('</select>');
    end;
    As mentioned, I can use this select statement directly on the DB and I can replace it in the process, with something like "select db_version from CPUJAN2006" and that works. Any ideas why this would not work on certain columns - could it have anything to do with number of columns in the table or column size?
    Any advice appreciated. Thanks,
    Michelle

    I can and will if this doensn't clarify. I've narrowed down problem to specific records returned from the process query.
    The text entries populating the select list sometimes contain the char '&'. When I get rid of these, my select lists look fine. The select list is populated with following bit:
    htp.prn('<option value="' || rec.d || '">' || rec.r || '</option>');
    I am thinking the & in some rec.d entries is interpreted as something other than text. I cannot change these text values in the DB, because they are fed from another DB. Can I somehow tell the process to view speacial characters as text?

  • GetCustomAttributes FlagAttribute working only on some Enums

    I have a bit of code that checks an enum to see if it has [Flags]. however, It only works for one of the enums that has a flag. the other ones are ignored for some reason.
    var currentEnum = new EnumInfo() { Name = t.Name, IsFlagsEnum = t.GetCustomAttributes<FlagsAttribute>().Any() };
    It loads the enums from an assembly and iterates through them. Nothing seems to be completely different between the enums other than the name and the values inside.
    the t is the element in the foreach loop
    foreach (Type t in query)
    What would cause the get custom attributes to fail to find the [flags] attribute. 

    The OrderBy seems to work, since all of the Enums are in order once it returns. 
    here's a couple of the enums, with scrubbed names. 
    This one returns false for flags.
    [Flags]
    public enum Method
    Undefined = 0,
    Site = 1,
    Manual = 2,
    API = 4
    and this one gets the boolean IsFlagsEnum = true;
    [Flags]
    public enum Type
    New = 0,
    Existing = 1
    Hi
    Fullmetal99012,
    Thanks for posting more useful information, Now i have tried reproed your issue. As
    CoolDadTx said, you code works fine on my side. Here is my screenshot
    >>the only difference on the two enumerations I posted above is that the one that isn't getting picked up by the code is reporting that the "members" of the enum have a CustomAttribute, while the one that is shows 0 for the custom attribute
    count. 
    I doubt you put the Method enum as members of a class.
    Best wishes,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I'm working with directx and it does working only on some of the Bitmaps. Why it's not working on the others ?

    The question is not so clear i will try to explain here.
    I have a trackBar scroll event:
    private void trackBar1_Scroll(object sender, EventArgs e)
    LoadPictureAt(trackBar1.Value, sender);
    ConvertedBmp = ConvertTo24(trackBar1FileInfo[trackBar1.Value].FullName);
    ConvertedBmp.Save(ConvertedBmpDir + "\\ConvertedBmp.bmp");
    mymem = ToStream(ConvertedBmp, ImageFormat.Bmp);
    backTexture = TextureLoader.FromStream(D3Ddev, mymem);
    scannedCloudsTexture = new Texture(D3Ddev, 512, 512, 1, Usage.Dynamic, Format.A8R8G8B8, Pool.Default);
    timer1.Stop();
    Button1Code();
    timer1.Start();
    b1 = ConvertedBmp;
    b1.Save(ConvertedBmpDir + "\\b1.bmp");
    trackBar2.Enabled = false;
    if (!this.backgroundWorker1.IsBusy)
    label2.Text = "מעבד נתונים";
    this.backgroundWorker1.RunWorkerAsync();
    else
    this.backgroundWorker1.CancelAsync();
    First LoadPictureAt method:
    private bool LoadPictureAt(int nIndex, object c)
    bool bRet = false;
    if (nIndex >= 0 && nIndex < trackBar1FileInfo.Length)
    if (c.Equals(trackBar1))
    pictureBox1.Load(trackBar1FileInfo[nIndex].FullName);
    bRet = true;
    if (bitmaps != null)
    if (nIndex >= 0 && nIndex < bitmaps.Length)
    if (c.Equals(trackBar2))
    pictureBox1.Image = bitmaps[nIndex];
    bRet = true;
    return bRet;
    Then the ConvertTo24 method:
    private Bitmap ConvertTo24(string inputFileName)
    sw = Stopwatch.StartNew();
    Bitmap bmpIn = (Bitmap)Bitmap.FromFile(inputFileName);
    Bitmap converted = new Bitmap(bmpIn.Width, bmpIn.Height, PixelFormat.Format24bppRgb);
    using (Graphics g = Graphics.FromImage(converted))
    // Prevent DPI conversion
    g.PageUnit = GraphicsUnit.Pixel;
    // Draw the image
    g.DrawImageUnscaled(bmpIn, 0, 0);
    //converted.Save(outputFileName, ImageFormat.Bmp);
    sw.Stop();
    return converted;
    Then ToStream method:
    public static Stream ToStream(Image image, ImageFormat formaw)
    var stream = new System.IO.MemoryStream();
    image.Save(stream, formaw);
    stream.Position = 0;
    return stream;
    What it does is taking a Bitmap image and make a doppler radar effect on it and detect color only places that there are pixels(clouds) in it.
    Here is a screenshot:
    You can see the doppler shape and it's moving around and highlight the places with clouds.
    So when i move the trackBar1 to the left each time on another Bitmap image it's showing the doppler effect and the clouds.
    The problem is with the trackBar2 scroll event:
    First when i'm running my program and enteric to this new form that scan the clouds and show the doppler radar effect a backgroundworker1 is working:
    private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
    BackgroundWorker bgw = (BackgroundWorker)sender;
    if (bgw.CancellationPending == true)
    return;
    else
    while (true)
    bitmaps = ImagesComparison.get_images_with_clouds(b1);
    for (int i = 0; i < bitmaps.Length; i++)
    bitmaps[i] = ConvertTo1or8Bit.ColorToGrayscale(bitmaps[i]);
    break;
    What it does is getting into bitmaps(Bitmap[])  15 new bitmaps from one given bitmap. The given bitmap is b1.
    b1 i'm using it in trackBar1 scroll event.
    All the new Bitmaps in bitmaps variable array are Format32bppArgb.
    While i checked on my hard disk the images(GIF type) i'm using with trackBar1 are all Bit Depth 8.
    The images i'm using with trackBar1 scroll event are GIF types and Bit Depth 8 on the properties.
    The images i'm using in trackBar2 are Bitmaps and they are Format32bppArgb.
    So first thing i thought to convert all the 15 Bitmaps in bitmaps to 8bit:
    for (int i = 0; i < bitmaps.Length; i++)
    bitmaps[i] = ConvertTo1or8Bit.ColorToGrayscale(bitmaps[i]);
    But it didn't work it's just turning them to black gray scale colors not what i was thinking about.
    In the backgroundworker completed event i'm converting the bitmaps to 24 like i'm doing with the Gifs in trackBar1 scroll event:
    private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
    trackBar2.Enabled = true;
    trackBar2.Maximum = bitmaps.Length -1;
    bitmaps[0].Save(ConvertedBmpDir + "\\bitmapsfirstimage.bmp");
    for (int i = 0; i < bitmaps.Length; i++)
    ConvertedBitmaps.Add(ConvertTo24(bitmaps[i]));
    ConvertedBitmaps[0].Save(ConvertedBmpDir + "\\ConvertedBitmapsFirstImage.bmp");
    label2.Text = "עיבוד הנתונים הסתיים";
    b1.Dispose();
    Then in the trackBar2 scroll event:
    private void trackBar2_Scroll(object sender, EventArgs e)
    LoadPictureAt(trackBar2.Value, sender);
    ConvertedBmp = ConvertedBitmaps[trackBar2.Value - 1];
    ConvertedBmp.Save(ConvertedBmpDir + "\\ConvertedBmp.bmp");
    mymem = ToStream(ConvertedBmp, ImageFormat.Bmp);
    backTexture = TextureLoader.FromStream(D3Ddev, mymem);
    scannedCloudsTexture = new Texture(D3Ddev, 512, 512, 1, Usage.Dynamic, Format.A8R8G8B8, Pool.Default);
    timer1.Stop();
    Button1Code();
    timer1.Start();
    The same i did with the trackBar1 scroll event.
    But the result in trackBar2 i'm getting without using the grayscale convertion is this:
    You can see that the color that make the scan now is more yellow or green/yellow and not the same like it is when i'm using the trackBar1.
    I can't figure out where the problem is:
    1. Maybe since the Bitmaps in the variable array bitmaps are all Format32bppArgb ?
    2. Maybe they are Bitmaps and not Gif types like the images in trackBar1 ?
    If it does working good with the gifs in trackBar1 scroll event then the whole code in the new form ScanningClouds is working fine so i will not add to here the whole ScanningClouds form code since it's long.
    The problem is somewhere with the Bitmaps formas or bits in the variable bitmaps.
    Maybe they are not the same or the right Bit Depth or maybe they are Bitmaps and should be Gifs.
    bitmaps = ImagesComparison.get_images_with_clouds(b1);
    This is the get_images_with_clouds method where i'm getting the new 15 Bitmaps.
    public static Bitmap[] get_images_with_clouds(Bitmap radar_image)
    int e = 0;
    int f = 0;
    int image_clock_area_x = 0;
    int image_clock_area_y = 0;
    int image_clock_area_x1 = 140;
    int image_clock_area_y1 = 21;
    Bitmap[] localImages;
    localImages = new Bitmap[15];
    Bitmap image;
    image = new Bitmap(Properties.Resources.radar_without_clouds);
    BitmapData bmD = null;
    BitmapData bmD2 = null;
    try
    bmD = image.LockBits(new Rectangle(0, 0, image.Width, image.Height), ImageLockMode.ReadWrite,
    PixelFormat.Format32bppArgb);
    bmD2 = radar_image.LockBits(new Rectangle(0, 0, radar_image.Width, radar_image.Height), ImageLockMode.ReadOnly,
    PixelFormat.Format32bppArgb);
    IntPtr sc0 = bmD.Scan0;
    unsafe
    int* p = (int*)sc0.ToPointer();
    int* p2 = (int*)bmD2.Scan0.ToPointer();
    for (e = image_clock_area_x; e < image_clock_area_x + image_clock_area_x1; e++)
    for (f = image_clock_area_y; f < image_clock_area_y + image_clock_area_y1; f++)
    Color clock_color = Color.FromArgb(p2[e + f * bmD2.Width]);
    p[e + f * bmD.Width] = clock_color.ToArgb();
    image.UnlockBits(bmD);
    radar_image.UnlockBits(bmD2);
    catch
    try
    image.UnlockBits(bmD);
    catch
    try
    radar_image.UnlockBits(bmD2);
    catch
    int c;
    for (c = 0; c < localImages.Length; c++)
    localImages[c] = new Bitmap(image);
    Bitmap new_image = new Bitmap(Properties.Resources.radar_without_clouds);
    Bitmap new_image1 = new Bitmap(Properties.Resources.radar_without_clouds);
    Bitmap localbmptest = black_and_white(new_image, radar_image);
    Image image1 = black_and_white(new_image, radar_image);
    image1.Save(@"c:\temp\testclouds666.jpg");
    Bitmap clouds = new Bitmap(image1);
    int x;
    int y;
    int a;
    int b;
    int d = 0;
    Bitmap redImage;
    redImage = new Bitmap(512, 512);
    using (Graphics g = Graphics.FromImage(redImage))
    g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
    g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half;
    g.Clear(Color.Red);
    BitmapData bmData = null;
    BitmapData bmData2 = null;
    BitmapData bmDataArray = null;
    try
    bmData = clouds.LockBits(new Rectangle(0, 0, clouds.Width, clouds.Height), ImageLockMode.ReadOnly,
    PixelFormat.Format32bppArgb);
    bmData2 = radar_image.LockBits(new Rectangle(0, 0, radar_image.Width, radar_image.Height), ImageLockMode.ReadOnly,
    PixelFormat.Format32bppArgb);
    IntPtr scan0 = bmData.Scan0;
    IntPtr scan02 = bmData2.Scan0;
    unsafe
    int* p = (int*)scan0.ToPointer();
    int* p2 = (int*)scan02.ToPointer();
    double h, mm;
    for (d = 0; d < localImages.Length; d++)
    bmDataArray = localImages[d].LockBits(new Rectangle(0, 0, localImages[d].Width, localImages[d].Height), ImageLockMode.ReadWrite,
    PixelFormat.Format32bppArgb);
    IntPtr scan0Array = bmDataArray.Scan0;
    int* pArray = (int*)scan0Array.ToPointer();
    for (a = 0; a < new_image.Width; a++)
    for (b = 0; b < new_image.Height; b++)
    Color color1 = Color.FromArgb(p[a + b * bmData.Width]);
    Color color2 = Color.FromArgb(p2[a + b * bmData2.Width]);
    if (color1.R != 0 || color1.G != 0 || color1.B != 0)
    h = color2.GetHue();
    mm = RadarAnalysis.Hue2MMPerHour(h);
    if (mm >= treshhold_array[14 - d])
    pArray[a + b * bmDataArray.Width] = color2.ToArgb();
    localImages[d].UnlockBits(bmDataArray);
    clouds.UnlockBits(bmData);
    radar_image.UnlockBits(bmData2);
    catch (Exception error)
    try
    clouds.UnlockBits(bmData);
    catch
    try
    radar_image.UnlockBits(bmData2);
    catch
    try
    localImages[d].UnlockBits(bmDataArray);
    catch
    Logger.Write("Error Exception ==> " + error);
    MessageBox.Show("Error Exception ==> " + error);
    return localImages;
    I think not sure but i think the problem is that the images on my hard disk i'm using with the trackBar1 scroll event are Gif type and the images i'm using with the trackBar2 scroll event are 15 Bitmaps.

    Hi,
    "But it didn't work it's just turning them to black gray scale colors not what i was thinking about."
    If you want it to be colored, you'll need to create a color-palette for the 8bppIndexed bitmaps. The keyword for this process is "Color-Quantization".
    The whole yellow-green pie you get is from the wrong format. If you convert the 32bpp bitmaps to 24 bpp bitmaps, you loose the alpha channel ("transparency"). You can manually set one color to "transparent" with the mMakeTransparent-method
    of the Bitmap class, or simply use gif-images (they are 8bpp with a transparent "key"-color)
    Regards,
      Thorsten

  • My iPhone 4s says that I'm connected to wifi and I can use it, but only for some apps could someone help me please

    I Need help getting my wifi to work

    I have seen numerous discussions of this on various forums with various brands of phones and various cellular providers. A common opinion is that some types of data usage are summarized and billed during the night -- i.e., the billing time does not reflect the actual time when the data is used. Following is one discussion on the AT&T forum that mentions the issue on a Windows phone and a Samsung Note 3: https://forums.att.com/t5/Windows-Phone/Data-usage-at-night/td-p/3765845

  • Flash Player works only on some sites

    Hey, ever since I've installed the new Flash 10.1 Flash has only worked on some sites. Good example is Youtube where it
    works and then again on Zero Punctuation site it doesn't work. This only happens if my user account is standard user. If I switch it to Admin account (the rights, I don't switch to a different account totally) then Flash works on all sites. Why does Flash require Admin account on this computer to work properly with 10.1?
    EDIT: Forgot to mention that Flash 10.1 works fine with Standard account on my laptop.'
    2nd EDIT: Windows 7 with Internet Explorer 8 btw. Forgot to mention that too

    Hey.
    I'm basing this on currently loaded IE addons. My desktop has more running atm. I can list them: Java Plugin 2 SSV helper, Windows Media Player, XML DOM Document 6.0, Free Threaded XML DOM Document, XSL Template 6.0 and Windows Live Sign-In Helper alongside with Flash. Laptop has only Windows Live Sign-in Helper on with Flash. The java is disabled and rest are from Microsoft and are well, needed to display XML sites I guess
    I have Microsoft Security Essentials with just Windows Firewall on both computers. And I just meant that probably some weird security setting in flash or IE since something, like I said, seems to be partially blocking flash from different domain. For example, I know that a site "istartedsomething" has a video that is linked from Youtube. It doesn't work in that site but everything works just fine in Youtube.
    I thought of that too first, that the websites haven't managed to update, but for some reason they do work on my laptop which has same flash installed.
    On sidenote, for example http://kb2.adobe.com/cps/155/tn_15507.html does work on my laptop but doesn't work on this desktop while http://www.adobe.com/software/flash/about/ works on both.
    Whew, wall of text done

  • Webcam works only in some applications

    Hi,
    I'm having an issue with a friend's PC (Dell XPS 12).  His integrated webcam is not working with neither Cheese nor WebRTC via Firefox.  In Cheese, the rendered video is broken (black and green) and in Firefox no video is displayed.  However, when testing the "video pipe" via gstreamer-properties the video is displayed as it should be: no errors.  I believe both Firefox and Cheese use gstreamer so this is puzzling. . .  I've tried Arch, Ubuntu and Fedora images.  The problem persists across all of them and it's preventing my friend from ditching Windows.
    Any ideas what could cause this error or how to change the configuration of gstreamer/webcam to try to resolve this issue?
    Thanks in advance,
    Rasmus
    PS: Unfortunately, I don't have logs or outputs here.
    PPS: I tried the LD_PREPATH suggestions from the wiki, but this did not work...
    Edit: Notes
    ID of webcam 0bda:5716
    openSuse report, Fedora report, launchpad report.
    Last edited by Pank (2015-01-27 17:31:27)

    Cf https://bbs.archlinux.org/viewtopic.php … 9#p1503299 for a workaround.

  • Text caption timings not working properly on some computers

    I've created a module in Captivate 4, published with the recommended settings of AS2, Flash Player 8, and 30 FPS. Audio narration is recorded on each slide separately. It contains a .flv video inserted that plays fine. On several of the slides, text captions are timed to appear automatically as the slide is being narrated. All the timings work fine on my computer (an HP laptop with Windows XP).
    This module is viewed by all 800 of our employees. Several employees (one is our department head!) have reported that the text caption boxes come in very slowly, not at all in sync with the narration. For instance, I have the caption set to appear after 5 seconds; on her computer, it doesn't appear until 15 seconds.
    This is only happening with text captions. On one slide, I have several transparent captions that the viewer has to click on to make them appear. These are working fine without any delay.
    We first thought a common thread among those having this problem was they had just received upgraded computers, although they all run Windows XP with Flash Player 10. However, the IT tech investigating it for us ran the module on a new computer and it played perfectly. So it seems to be a problem in Captivate.
    Anyone have any ideas as to what is causing this issue? Thanks for any help you can offer!

    Have you tried republishing the movie as AS3 and Flashplayer 10?
    Flasplayer 8 was nowhere near as efficient at decoding SWF content.
    If all your users are on FP 10, publish to FP8?

Maybe you are looking for

  • How to rename a file in Application server

    Hi All, Here I have a issue with  the present file which is being generated in application server. Before the completion of the file the EDI tool is extracting the file from the app server.So here I would like to generate the file with a temp name an

  • How to set the title of an urxvt window?

    Hello, I have read the manpage and FAQ on the urxvt website, but my problem persists: When I try to set the title of an urxvt window, for example: $ urxvt -title test then the new window shows for a second the title "test" and then switches  to "user

  • Char into balise jsp:scriptlet in jsp with xml syntax

    hello, i met a trouble with coding jsp with xml syntax, i use wsad to develop the jsp, and it's not allowed to put characters < or > into the balise scriptlet for example i cant do a loop (as i did easily with html syntax <% %> ) : this his the heade

  • Oracle.security.jps.JpsPermission IdentityAssertion

    Hello Experts, Please note that I am getting the below error in my production box. ####<Mar 4, 2013 9:42:33 AM AST> <Notice> <Diagnostics> <RB1-SOA-01> <soa_server1> <[ACTIVE] ExecuteThread: '57' for queue: 'weblogic.kernel.Default (self-tuning)'> <<

  • Developer - Forms and Reports 11g?

    Hi, We have recently installed application server 11g and developers are asking me for the developer 11g software to go with the forms and reports. Looking at the oracle website they have changed things, there is no longer a Developer 11g, and I'm ha