Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

BryanWilkins

@BryanWilkins
About
Posts
20
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How do you organize code elements in a file?
    B BryanWilkins

    Ravi Bhavnani wrote:

    Judicious use of nested #regions.

    I agree totally with this statement. Regions by far to me are the most useful for making code files readable.

    -Bryan My latest programming adventure was coding a facial recognition system for the Harry Potter Forbidden Journey Ride at Universal Studios Florida. I love my job.

    The Lounge tutorial question

  • Old calculators...
    B BryanWilkins

    My old HP-28C is sitting on my desk, bought in 1985. Only on its second set of batteries. Still Going strong. Amazing!

    -Bryan My latest programming adventure was coding a facial recognition system for the Harry Potter Forbidden Journey Ride at Universal Studios Florida. I love my job.

    The Lounge css help tutorial question

  • Do comments add to reputation points?
    B BryanWilkins

    Aww shucks. I search now and i see the thread you are talking about. :) I must have misspelled something and did not notice. :-O

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    Site Bugs / Suggestions question career

  • Visual Studio 2010 Ultimate Licenses to be given away [closed]
    B BryanWilkins

    Don't need it either, but It certainly is refreshing to know that there are still a few good souls left in this world with generous tendencies.

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    The Lounge visual-studio csharp announcement

  • "It wasn't me"
    B BryanWilkins

    Too cool! :laugh:

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    The Lounge com question

  • Do comments add to reputation points?
    B BryanWilkins

    Thanks! I promise i did a search before I asked. :laugh:

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    Site Bugs / Suggestions question career

  • Do comments add to reputation points?
    B BryanWilkins

    I just posted a comment on an answer in the Quick Answer section, and I noticed that my rep did not change. Shouldn't posting a comment to an answer get a rep point of some kind? Debator maybe? Just wondering.

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    Site Bugs / Suggestions question career

  • Participant Points Mismatch
    B BryanWilkins

    Mine is the same, graph not matching the tab. :^)

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    Site Bugs / Suggestions data-structures help

  • GDI Related issue - External Exception being thrown in System.Drawing.dll
    B BryanWilkins

    Your welcome. :thumbsup:

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    C# help graphics visual-studio winforms question

  • GDI Related issue - External Exception being thrown in System.Drawing.dll
    B BryanWilkins

    Just an odd question. What happens when you try to save the image in the same folder but a different name? Also, what happens if you go to this folder in Windows explorer and try to create a file? like a new text document or the like. Does UAC gripe at you or something?

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    C# help graphics visual-studio winforms question

  • Enums, Intellisense, and switchs…
    B BryanWilkins

    I had no idea! Real cool! :thumbsup:

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    C# visual-studio question csharp help

  • GDI Related issue - External Exception being thrown in System.Drawing.dll
    B BryanWilkins

    Yes, Luc is right... Wow, i don't believe i didn't see that. :doh:

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    C# help graphics visual-studio winforms question

  • GDI Related issue - External Exception being thrown in System.Drawing.dll
    B BryanWilkins

    Hi, In this bit of code you still have the stream open because you are doing your bitmap operations inside your using. Windows may still have hold of the bitmap. Copy the bitmap inside the using and do the other stuff outside of the using. See if that works. something like this...

    using(FileStream fileStream = File.OpenRead(filePath))
    {
    this.bmp = Image.FromStream(fileStream);
    string fileName = Path.GetFileName(filePath);
    Image newImage = (Image)this.bmp.Clone();
    this.bmp.Dispose();
    }

    if(destFolder.EndsWith("\\"))
    .
    .
    .

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    C# help graphics visual-studio winforms question

  • GDI Related issue - External Exception being thrown in System.Drawing.dll
    B BryanWilkins

    Windows probably has the bitmap locked if you are saving the file over itself. If you are trying to save the image over itself. First, create a copy of the image and dispose of the original bitmap. Then apply the title to the copy and save it over the original image. Once disposed, it should not give you any problems. you can use the Bitmap(Bitmap) constructor in order to make a copy.

    -Bryan My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    C# help graphics visual-studio winforms question

  • Dynamic Form
    B BryanWilkins

    Well, you didn't show the line where you are calling ComboBox.Items.Add But have you tried this?

    try
    {
    (ctrl as ComboBox).Items.Add(whatevertoaddhere);
    }
    catch(Exception ex)
    {
    //fail here gracefully...
    }

    or something of the like.

    My latest programming adventure was coding the multimedia features for the Rip Ride Rockit coaster at Universal Studios Florida. I love my job.

    C# csharp asp-net visual-studio graphics data-structures

  • I broke Windows Live
    B BryanWilkins

    Wow I actually laughed outloud with that one. :laugh: Hardly ever happens to me lately. :sigh:

    The Lounge c++ sysadmin architecture

  • Help with a custom layered bitmap control in WPF
    B BryanWilkins

    I figured that I would post what I did here for others to see how I approached it and to comment on my thoughts. I took a step back and with a deep breath did some research on custom panel layouts. It seems that I really needed to understand this because i made a custom panel layout somewhat akin to a cross between a Grid and a Canvas. Got it to auto size the composited bitmaps into the size of the panel by figuring out a global scale in the MeasureOverride. That way i still get the benefit of attaching pixel shaders to the image objects if i need to do saturation,chroma key etc... Please tell me if you think this could help others so i can think about making it an article if useful. Bryan

    WPF help winforms csharp graphics c++

  • We're 10 years old!
    B BryanWilkins

    Happy Birthday CP! I've been here learning so much from this site for so long, i think it is perma linked into every browser that i have. :) Thanks for the wonderful site! Bryan

    The Lounge c++ html architecture question

  • Help with a custom layered bitmap control in WPF
    B BryanWilkins

    Hi, First of all, i had no intention of this being so long, but i needed to be thourough, so here goes. I have been a Code Project member for so long that i feel guilty for not contributing more to this wonderful site. I recently have begun converting a Windows Form application that I wrote to WPF. I can safely say that I am really comfortable using Windows Forms because I have been programming using them for years. Before that, MFC windows apps. I'm not afraid of a challenge, and I really believe that in the long run my application will be better for making the transition to WPF. Thus, comes the issue. My Application is a retail photo editing application that is used exclusively in our stores to sell printed photos to people These photos have been adorned with "Borders" or "Frames" that are bitmap based. Basically, I have a set of "Layers" that comprise my product. The picture, the Bitmap border, and maybe some little adorner decals and a text layer or two. Each layer has a z-order and in my WinForms app is neatly rendered by a custom control that i wrote using old style GDI+ drawimage commands and a-lot of refreshes everytime something changed. When I say everytime something changed i mean if the user dragged the photo to a new position under the border or changed the zoom, colors, saturation etc the application would have to redraw everything reflecting the changes. Needless to say, that in order to achieve realtime rendering of all these effects, i had to use a scaling factor and cached, smaller bitmaps in order to get these things to happen in realtime. It was a real pain to keep everything straight. Then comes along WPF and turns everything upside down for me. I now have a new rendering system that natively supports transparency and has pixel shaders for the effects such as saturation and chroma key. I have done some tests with raw bitmaps and all of these effects can be achieved realtime with no problems on todays hardware. Everythings good right? Wrong. I have converted everything but what i call the main Workspace control. I am soooo stuck on this it isn't funny to me anymore. I have been reading everything i can get my hands on and I guess I am too close to the problem because I am hopelessly stuck trying to decide how to implement this. I have a .xml file that describes how a picture should be placed in a border. meaning the top left and size depending on the orientation and aspect ratio. This is already done from my winforms application, so i have all of the in

    WPF help winforms csharp graphics c++

  • Dear CPians: Help me out by voting for this
    B BryanWilkins

    Done! :)

    The Lounge help csharp database com debugging
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups