Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8708007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:00:38+00:00 2026-06-13T04:00:38+00:00

I met some problems while using GDI+ for drawing different images in my program.

  • 0

I met some problems while using GDI+ for drawing different images in my program.

My program represents a window with a button and a background.

Logic of my program intended to work in the following way:

  • When user hits the button, an open file dialog box must open and ask
    user to select an image file.
  • When user is done with that, program must draw that file on the background of the main (and single) program window.

My problem is that all Gdiplus objects doesn’t have a default constructors.

So even when I choose FromFile method, my bitmap object still have the same picture, assigned in constructor, so I didn’t even realize how to change them dynamically.

Can you advice some solution to that problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:00:39+00:00Added an answer on June 13, 2026 at 4:00 am

    The Image::FromFile() method is static, it returns a newly constructed Image object that contains the image. Think of it as a factory method. Without seeing code, I’d have to guess that you forgot to use the return value of the method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I met some trouble while using input type dates, also I decided for reasons
I have some logic in before_save whereby (only) when some conditions are met I
currently working on generation elliptic curve for ECDSA and met some problems: An elliptic
I'm trying to call a JavaScript function through PHP and have met some problems.
I am a newbie to Django, GAE, and met some problems when I am
I'm new to functional programming, so some problems seems harder to solve using functional
I am write one easy program using GAE and python 2.7, but I met
I've been having some site problems while developing and decided to run the magento-check.php
I have some images that are not visible other are (background images or img
While i making some kind of jQuery image rotator, i met problem. Where is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.