problem about transparent-Collection of common programming errors


  • Omer litchy
    c# image transparent crop pixels
    I have this image:and I wrote a code that supposed to crop only the part with the black dots(the code is built for 1-color images only), without all of the transparent pixels around the dots, and then return the image after the crop, but for some reason, when it gets to a black pixel, it does not recognize that this is a black pixel, and because of that, it skips the ‘if’ statement.Here is the code:private Image cropTransparency(Image image){Bitmap imageCrop = new Bitmap(image);imageCrop.Save(@”

  • Maciej Miasik
    python pygame transparent
    Is it possible to display PyGame surfaces with controllable alpha? I would like to take a surface with its own per pixel alpha and display it with variable level of translucency without affecting the surface data and keep the transparency intact i.e. the objects on the surface would keep their shapes but their “contents” becoming more or less translucent.In other words I want to combine per-pixel alpha from the source image with per-surface alpha calculated at the runtime.

  • gberg927
    user-controls vb6 transparent visible ocx
    I have some VB6 controls that I have placed on a frame OCX that I have created myself. The issue, is when the frames are made visible, sometimes the controls (in this example 2 comboboxes) are missing, and you can see the background color of the Form through it.The Usercontrol, is just 2 images with gradients, and a label for the title. Are there any settings for UserControls that I need to know about that will fix this?EDITEDAutoRedraw: True Clip Controls: True

  • bowerandy
    transparent google-swiffy
    I’m trying to use Google Swiffy to convert some simple Flash to HTML5. I need the resultant output to have a transparent background. I’ve read on other sites and here on SO that removing the (“backgroundColor”:-65536,) text from the HTML should work. However, for me this just turns the background black.Perhaps the Swiffy converter has changed and this solution no longer works. Does anyone have any other alternatives. (I’m using Safari and Mobile Safari for testing)

  • Tom
    air transparent stage
    Is it possible to change the stage of an Air 2.5 desktop application from normal to transparent at runtime?

  • Blobby

  • RRUZ
    image delphi delphi-2009 ribbon transparent
    I just played around with the new Delphi 2009 ribbon, added a few pages, groups and actionclients (large buttons) to it. I created some transparent 32x32px PNGs in Photoshop and put them into a TImageList (set to cd32bit). I added this list to the Actionmanager’s Images property, to show them on the buttons. At designtime the icons in the ribbon look just fine, but when compiling and starting the app they have a black background. Any idea what causes this and how I can fix this? I do not want to

  • MarqueIV
    wpf focus transparent keyboard-events event-passthrough
    I have a ListBox with a custom data template which contains a CheckBox, a TextBlock and a TextBox. Normally when you select an item in a ListBox, the underlying ListBoxItem is actually what has the focus and as such, it responds to the up and down keys. Additionally, if the CheckBox has focus, since it doesn’t do anything with the up and down keys itself, it just happily ignores them and they’re handled by the underlying ListBoxItem as well. All’s good so far.However, a TextBox has its own pr

  • Jesse
    click png transparent fade
    I am creating a 650 X 610 px historical railway map and would like to start with a blank map, then fade in transparent .png layers containing just a fragment of the railway, one on top of the other, building up to an image of the whole network. There would be a list of the dates the network was extended to click and make that bit of line appear. Easily done using solid images, but very slow and there are 31 images. I couldn’t find any forum queries about this anywhere. Please could anyone help

Web site is in building