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 6611111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:55:42+00:00 2026-05-25T19:55:42+00:00

I am a moderately experienced C# developer, but I’m new to XNA and graphics

  • 0

I am a moderately experienced C# developer, but I’m new to XNA and graphics in general. I’m making a 2D game and I’m trying to draw a texture that partially transparent. The desired transparency value is stored in a float variable. The only solution I’ve found is to directly edit the alpha values in the texture each frame, but that seems inefficient. I’ve tried using alpha blending, but I haven’t been able to figure out how to use my own transparency value. Is there a better way to do it?

Edit: Added more information.

  • 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-05-25T19:55:42+00:00Added an answer on May 25, 2026 at 7:55 pm

    if you are using spritebatch is easy:

     float alpha = desired_alpha;
    
     spritebatch.Draw(texture, pos, source, Color.White * alpha);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am moderately new to SmartGWT and am trying to figure out how to
Those of you that are even moderately knowledgable of math will likely laugh, but
I want to write a simple program that takes a moderately sized wav file
I'm a moderately experienced Java / C# programmer, and I've recently started learning C++.
I have a moderately complex design, and I'm trying to delete an ItemCollection from
I inherited a moderately large sized code base that makes extensive use of mysql_fetch_assoc
I'm currently developing a moderately large sized web app with ASP.NET 2.0 that uses
I am moderately new to MVVM and I understand some of the benefits of
I'm trying to parse a moderately large XML file (6mb) in php using simpleXML.
I'm trying to import a moderately complex report into my java application. The report

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.