Click here to Skip to main content
15,672,482 members
Home / Discussions / Graphics
   

Graphics

 
QuestionHow to send a windows message from C# to C++ Pin
HoraceKHering5-Jun-23 18:00
HoraceKHering5-Jun-23 18:00 
AnswerRe: How to send a windows message from C# to C++ Pin
Victor Nijegorodov5-Jun-23 20:32
Victor Nijegorodov5-Jun-23 20:32 
AnswerRe: How to send a windows message from C# to C++ Pin
jschell6-Jun-23 4:44
jschell6-Jun-23 4:44 
Questionwhat are the differences between pass-by-value and pass-by-reference in C++ Pin
ortegacarey31-May-23 20:30
ortegacarey31-May-23 20:30 
AnswerRe: what are the differences between pass-by-value and pass-by-reference in C++ Pin
Victor Nijegorodov31-May-23 20:47
Victor Nijegorodov31-May-23 20:47 
GeneralRe: what are the differences between pass-by-value and pass-by-reference in C++ Pin
trønderen1-Jun-23 14:45
trønderen1-Jun-23 14:45 
GeneralRe: what are the differences between pass-by-value and pass-by-reference in C++ Pin
Gerry Schmitz1-Jun-23 16:04
mveGerry Schmitz1-Jun-23 16:04 
Answertack snap shot with windows service Pin
sa1114419-Oct-21 23:02
sa1114419-Oct-21 23:02 
GeneralRe: tack snap shot with windows service Pin
OriginalGriff19-Oct-21 23:05
mvaOriginalGriff19-Oct-21 23:05 
QuestionUWP Flyout Problem Pin
RWey22-Jun-21 10:39
RWey22-Jun-21 10:39 
AnswerRe: UWP Flyout Problem Pin
Gerry Schmitz23-Jun-21 6:38
mveGerry Schmitz23-Jun-21 6:38 
AnswerRe: UWP Flyout Problem Pin
RWey25-Jun-21 6:38
RWey25-Jun-21 6:38 
QuestionDrawing a simple triangle horror when using std::vector Pin
Isawyouoo21-May-21 11:21
Isawyouoo21-May-21 11:21 
AnswerRe: Drawing a simple triangle horror when using std::vector Pin
Graham Breach21-May-21 21:03
Graham Breach21-May-21 21:03 
AnswerRe: Drawing a simple triangle horror when using std::vector Pin
Richard MacCutchan21-May-21 21:37
mveRichard MacCutchan21-May-21 21:37 
QuestionLooking for a C# option for doing simple 2D graphics Pin
MollyJanet13-May-21 8:45
MollyJanet13-May-21 8:45 
QuestionSharpDX MediaFoundation and DirectShow Pin
RWey15-Apr-21 4:22
RWey15-Apr-21 4:22 
AnswerRe: SharpDX MediaFoundation and DirectShow Pin
Dave Kreskowiak15-Apr-21 4:53
mveDave Kreskowiak15-Apr-21 4:53 
GeneralRe: SharpDX MediaFoundation and DirectShow Pin
RWey15-Apr-21 6:16
RWey15-Apr-21 6:16 
GeneralRe: SharpDX MediaFoundation and DirectShow Pin
Gerry Schmitz15-Apr-21 8:25
mveGerry Schmitz15-Apr-21 8:25 
GeneralRe: SharpDX MediaFoundation and DirectShow Pin
RWey15-Apr-21 9:35
RWey15-Apr-21 9:35 
GeneralRe: SharpDX MediaFoundation and DirectShow Pin
Dave Kreskowiak15-Apr-21 9:40
mveDave Kreskowiak15-Apr-21 9:40 
GeneralRe: SharpDX MediaFoundation and DirectShow Pin
RWey15-Apr-21 10:45
RWey15-Apr-21 10:45 
GeneralRe: SharpDX MediaFoundation and DirectShow Pin
SEO3 Softrix13-Dec-22 23:47
SEO3 Softrix13-Dec-22 23:47 
QuestionPygame image wont show up until I close the window Pin
c0d3r1/212-Jul-20 11:04
c0d3r1/212-Jul-20 11:04 
I am creating a game with pygame and an image won't show up until the window is loading to be closed. This is my code so far:
Python
import pygame

pygame.init()
screen = pygame.display.set_mode((800, 600))

pygame.display.set_caption("ALix")
icon = pygame.image.load("nater.jpg")
pygame.display.set_icon(icon)

playerImg = pygame.image.load('nater.jpg')
playerX = 400
playerY = 300

def player():
    screen.blit(playerImg, (playerX, playerY))

running = True
while running:
    screen.fill((255, 255, 255))

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False
player()

pygame.display.update()


modified 13-Jul-20 3:22am.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.