I am working on a communications program with camera inputs.
I have added Jukuma's DBP CAP DLL Plug-in and it works fine on its own, but when I have a different background image than the simple "zero" black background, it is a jumbled mess-- even with the alpha channel active and the video placed in the space...
Is there a way to grab the camera output from a backbuffer/memblock, then convert it to a sprite and paste the sprite to the screen in the correct location?
I am adding for DL the files I'm using, with my source code.
Please assist...
Rem Project: Kiosk_New
Rem Created: Tuesday, April 13, 2010
Rem ***** Main Source File *****
`####################################
`# CONSTANT DEFINITIONS
`####################################
#CONSTANT MainFont = "Onuava"
#CONSTANT FPath = "media\"
#CONSTANT Location = "Videopolis Games Company - Cyberspace, FL - 33699 (LOL)"
#CONSTANT WTitle = "CURRENT WEATHER"
`#####
`# COLORS
`#####
#CONSTANT Wht = RGB(255,255,255)
#CONSTANT Blk = RGB(0,0,0)
#CONSTANT Rdd = RGB(255,0,0) `Red, Green and Blue are Misspelled...
#CONSTANT Grn = RGB(0,255,0) `Reason: these are reserved words and
#CONSTANT Blu = RGB(0,0,255) `cannot be used for anything else...
#CONSTANT Mag = RGB(255,0,255)
#CONSTANT Cyn = RGB(0,255,255)
#CONSTANT Ylw = RGB(255,255,0)
`@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
`@ SCREEN SETTINGS
`@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
SET DISPLAY MODE 1440, 900, 32
`SET DISPLAY MODE 1280, 800, 32
CLS
`SET IMAGE COLORKEY 255, 0, 255
SET BITMAP FORMAT 32
LOAD BITMAP FPath + "Interface2.png", 0
SET CURRENT BITMAP 0
`PASTE IMAGE 1, 0, 0, 1
`$$$$$$$$$$
`$ SCREEN TEST - WRITE STUFF TO SCREEN
`$$$$$$$$$$
SET TEXT FONT Mainfont
`SET TEXT TO ITALIC
SET TEXT SIZE 32
INK Blk, Wht
`UPPER TEXT REGION (CENTERED...)
` I want to use this region for the location name and address...
CENTER TEXT 720, 10, Location
`LOWER TEXT REGION (LEFT JUSTIFIED)
SET TEXT SIZE 18
SET TEXT TO BOLD
TEXT 220, 850, WTitle
`LOWER TEXT REGION (CENTERED...)
`this is going to be replaced by an RSS feed (just wish I knew how to do that... lol)
SET TEXT TO NORMAL
SET TEXT SIZE 24
CENTER TEXT 720, 864, "LOCAL WEATHER: NWS CYBERSPACE- SUNNY, CALM BUT COOLER. HIGH 78. TONIGHT: LOW 66."
`%%%%%%%%%%%%%%%%%%%%
`% CAMERA STUFF - DBP_CAP COMMANDS
`%%%%%%%%%%%%%%%%%%%%
CREATE CAP WINDOW 479, 335
POSITION CAP WINDOW 60, 78
WAIT KEY
DELETE CAP WINDOW
END
This program also will not relinquish it's resources when it quits; instead, it stalls and stops other copies of it from working AND I have to drop into Task Manager to "Stop the Process". Any suggestions?
Hoping I could get some input about any of these, above, problems.
This program is a complete rewrite of the implementation that I had, when I altered the DarkNET "Advanced Cube World" demonstration program-- I wanted to get this running
before I added in the data transfers and other network initialization code.
Please, any assistance is greatly appreciated!