31 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for Onion13

Would someone explain to me how to use bitmap. I have a video game I am working on so I added images using resourcesrx and wanted to use bitmap to display where they will appear on form1. I saved the image as player.

Member Avatar for rproffitt
0
39
Member Avatar for ms95

hi guys i've written an bare OS and now im trying to go a little furthur and create a very simple GUI for it . but i have no idea how to create such a thing . my os is running in text_mode though i can change to some other …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for Ferd12324445

I'm creating multiple custom info windows using only one xml layout, all of the info inside the window will be put In programmatically. I am now trying to give the ImageView an image but when I do that for one marker all of the other markers ImageView images become the …

Member Avatar for raj.mscking
0
337
Member Avatar for star.bravo

I want to know how I can have an array of strings for example: a[] = {A,B,C,...,Z} and then randomly choose one character from the array (for instance 'F') and apply a font format from windows on it and then render that particular letter in the form of Bitmap image …

Member Avatar for Fenrir()
0
379
Member Avatar for jakubee

Hi All, My problem is: i'm trying to convert byte[] into image. The byte[] comes from JSON and it's in this format: `"4oCwUE5HDQoaCgAAAA1JSERSAAAAfwAAAFAIBgAAADBHwqrDsAAAAAlwSFlzAAAAJwAAACcBKgnigJhPAAAgAElEQVR4xZPCrMK9ecWSZcOZfcOfw7c5w5vCvW/CqXp..."` it goes for another 100 lines. The code where the problem occurs: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(PlayersListActivity.URL); httpPost.setEntity(new UrlEncodedFormEntity(parameters, "UTF-8")); HttpResponse httpResponse …

0
151
Member Avatar for Labdabeta

Hello. I have been looking long and hard for an image library that meets these criteria that I have for pretty much any library I will use (with some obvious exceptions): A) Cross-Platform (If at all possible) B) Weightless (or nearly weightless) C) Stand-alone (I hate having to include DLLs …

Member Avatar for Labdabeta
0
234
Member Avatar for Labdabeta

Hello, I am making a program that deals with bitmap files and I want to try to load bitmap data manually. The issue is that I cannot find a good resource for exactly what bitmap files can contain. [Wikipedia](http://en.wikipedia.org/wiki/BMP_file_format) has a decent article, but it is missing some important information. …

Member Avatar for Labdabeta
0
647
Member Avatar for ralph.d.abernathy.1

Hello everyone! So I wrote a program that simulates a dice game, almost like the game of Craps. I want to turn this normal console app into a dialogue based MFC. So I would create a button labeled "Roll" and the window would show two die being rolled. Here is …

Member Avatar for ktsangop
0
447
Member Avatar for DarkT

Hi everyone. I'm used to programming in C/C++ and I've created some dialog based windows apps. Recently, I've got an assignment at work to learn C# + WPF and its capabilities showing video. My company works with cameras and my job is to create an app to show their feed. …

Member Avatar for robert.s.junior.98
0
238
Member Avatar for thiemebr

Anyone has any idea why this error is happening? The weird thing is that this page works in one server but not in another. Parameter is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about …

Member Avatar for thiemebr
0
482
Member Avatar for Lemony Lime

So, this seems like it should be the default to me... if you're going to make your own picture for a button, I don't see why you'd want the default border around it, but I can't for the life of me figure out how to get rid of it. I …

Member Avatar for vegaseat
0
2K
Member Avatar for walid86

Situation: i have a bitmap loadedImage1 which the user is able to resize, and move around inside picturebox1. objective: this loadedImage1 is then to be added to a pdf document (which is working) but needs to be using the current size and location(as the user can move it around) atm: …

Member Avatar for walid86
0
199
Member Avatar for walid86

So i'm creating a form, on the form is a panel (panel1) which holds all data, pictures etc... This is then to be made into a bmp for professional printing (ie 300dpi). A4 @ 300dpi = 2480 x 3508; i am able to create the image at the panel's height …

Member Avatar for walid86
0
1K
Member Avatar for gihanbw

hi, i wrote the following piece code to create a new bitmap file with random RGB values. I wanted to copy the header from the input file. the problem is it adds two additional bytes to 3rd and 4th (just after the magic number). i can't figure out why. // …

Member Avatar for gihanbw
0
439
Member Avatar for frogster

Hi! In my direct 2d game i want to draw a big background picture entered by the user. Im currently trying to do this as described on [url]http://msdn.microsoft.com/en-us/library/ee719658%28v=vs.85%29.aspx[/url] . Altough it gives me read error at pos 0x0000. Heres the code: [CODE] RECT rc; GetClientRect(hWnd, &rc); using namespace D2D1; //Render …

Member Avatar for frogster
0
276
Member Avatar for Fungus1487

Hi all. I have a requirement to collect a bitmap image directly from a given AVI file. Does anyone know of any decent .Net only libraries that by any chance can achieve this? I would like to avoid any COM interops if possible but if you have had experience using …

Member Avatar for Momerath
0
239
Member Avatar for fire_

Hello. I'm creating a program with dialog editor. How can i set bitmap on button? I set bitmap at properties to True. I tried to search on google but i could only find how to set bitmap on button created with CButton. Thank you

Member Avatar for mitrmkar
0
573
Member Avatar for hanvyj

I have a curius problem with my bitmap writing function, it takes a char array and writes a 24 bit BGR bitmap. It was working fine using an array captured from a camera, I printed out the content of the first couple of bytes: 132 135 131 132 135 131 …

Member Avatar for hanvyj
0
209
Member Avatar for hanvyj

I am trying to write a char array to a bitmap in c++. I (think) i know what values I need in my file header and bitmap info header, and i have looked at some examples but I cant seem to solve this problem (i'm sure its something stupid) In …

Member Avatar for hanvyj
0
660
Member Avatar for jackabascal

It may seem like a simple answer, but how do I pass an image to a bitmaps constructor. for example: [CODE]Bitmap bmp = new Bitmap(########);[/CODE] what would I put in place of the pound signs If i wanted the default image to be C://Users/Me/Documents/Visual Studio 2010/Projects/MyProject/Image.jpg Please help.

Member Avatar for Geekitygeek
0
184
Member Avatar for jackabascal

[CODE]private Bitmap _picture = new Bitmap(@"<C:\Users\Jack\Documents\Visual Studio 2010\Projects\Animotion1.0\DefaultCharPic.jpg>");[/CODE] as a datamember to a class? Can I just not assign Bitmaps as members?

Member Avatar for Zinderin
0
216
Member Avatar for tehbrozor

Hello! I am trying to display a FITS image, if your not familiar with the extension its fine (gtk.Image.new_from_file() isn't either). I can get my image data to a numpy array (2D (256x256 to be exact)) I am having the most difficult time getting this into a grayscale image. I've …

Member Avatar for tehbrozor
0
231
Member Avatar for random12810

I have no idea how to move a bitmap with the arrow keys. Here is my code [CODE] #include <windows.h> #include <tchar.h> #include <stdlib.h> #include <string.h> #include "Menu.h" #include "Icon.h" LPCTSTR ClsName = L"App"; // Class name LPCTSTR WndName = L"WindowsAPI"; // Window title HWND hwnd; // Handle to our …

Member Avatar for strmstn
0
2K
Member Avatar for random12810

Which is better Double Buffering or assigning to a Static Control. I would like an example of double buffering or both. This is my bitmap code. [CODE] #include <windows.h> #include <tchar.h> #include <stdlib.h> #include <string.h> #include "Menu.h" #include "Icon.h" LPCTSTR ClsName = L"App"; // Class name LPCTSTR WndName = L"WindowsAPI"; …

Member Avatar for random12810
0
292
Member Avatar for cascade3891

Hello Python community, I've just finished building an app with Python and I'd like to share my experiences and get some feedback. This was from scratch (no code templates) all the way to compile and distribution on a Windows environment. Now all my colleagues at work are using the app …

Member Avatar for vegaseat
0
1K
Member Avatar for student88

hi all .. just want to ask if anyone have an idea how can i move image down throug keyboard cursors up an down .. i know that there is the keydown event and the keyup event but really i don't know how to write the code .. other qusetion …

Member Avatar for student88
0
172
Member Avatar for Byrne86

Hi, Iv had to convert a program from Java to C#, I thought I had done it, but it doesnt work, and Im at a loose end because I cant figure out why it isnt working. Anyway, what it is is a Mandelbrot Set that Im trying to display in …

Member Avatar for ddanbe
0
543
Member Avatar for ronson

Ok I'm converting a program from Java to C# and currently stuck on a certain aspect of it. Ok I have; [code=Java]private Graphics g1; private Bitmap picture; picture = new Bitmap(x1, y1); g1 = Graphics.FromImage(picture); pbMand.Image = picture;[/code] pbMand is the name of my picture box, which I will use …

Member Avatar for ronson
0
227
Member Avatar for PyroPaul2

Hi all. Could anyone give me a pointer please? I've almost finished a project I'm working on but have one last issue to resolve. I have an image on a form that I apply a colour gradient to. However, when I grab this to create a bitmap (this.DrawToBitmap(BackGroundBmp, BackGroundRect);) I …

Member Avatar for DdoubleD
0
282
Member Avatar for MaskedPianist

Hi guys First post on this website, so go easy on me. I'm a fairly inexperienced programmer, mostly using snippets of other people's code and adapting it for my own uses, but I have found a problem. I want to change my desktop programatically, but to a picture on the …

Member Avatar for iamthwee
0
164

The End.