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

  • SEARCH
  • Home
  • 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 6704485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:17:39+00:00 2026-05-26T07:17:39+00:00

In my DirectX application, I need to display some image over the background video/image.

  • 0

In my DirectX application, I need to display some image over the background video/image. I am using RenderToSurface to draw all small images on a single surface and then try to draw over the background video, but the problem it will overwrite my background video and images. How can draw images. My code

    Viewport view = new Viewport();
    view.Width = _device.DisplayMode.Width;
    view.Height = _device.DisplayMode.Height;
    _renderingSurface.BeginScene(_renderSurface, view);
    _device.Clear(ClearFlags.Target, Color.White, 1.0f, 0);
    foreach (REDisplayElement element in this)
    {
        if (element.IsDisposed == false)
       {
            element.Draw(true);
      }
    }
   _renderingSurface.EndScene(Filter.None);
 }
  • 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-26T07:17:39+00:00Added an answer on May 26, 2026 at 7:17 am

    I’m more familiar with xna, but aren’t you clearing the render target with white, rather than transparency?

    You want any pixel on the render target that’s not drawn over to be transparent, not white.

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

Sidebar

Related Questions

I have a non-fullscreen DirectX window displaying video, which I for application purposes need
I need to use the RGBRast software renderer for a DirectX application I'm developing.
I want to draw DirectX content so that it appears to be floating over
I'm writing a Direct3D application, using DirectX 9. Although it works on my PC,
Sometimes I need to develop a simple database application using MS Access Databases. I`ve
I am writing a WPF application and need to show info about video card
I am trying to do an enterprise application which need to list all the
Hi i am creating a sample application using DirectX. I am following a sample
I am creating a Facebook iframe application, and need to use some $_GET variables.
The application supports Windows XP, Vista, and Windows 7 but need DirectX libraries in

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.