User Profile

Collapse

Profile Sidebar

Collapse
nfollmer
nfollmer
Last Activity: May 9 '08, 10:20 PM
Joined: May 9 '07
Location: PA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nfollmer
    replied to writing a bmp
    in C
    Nevermind, I finally got it! Thanks for the help guys! Heres the code (this isn't school work):

    Code:
    #include "stdafx.h"
    #include <iostream>
    #include <fstream>
    #include <windows.h>
    
    using namespace std; 
    
    
    int main()
    {
    	HANDLE file;
    	BITMAPFILEHEADER fileHeader;
    	BITMAPINFOHEADER fileInfo;
    	RGBTRIPLE *image;
    ...
    See more | Go to post

    Leave a comment:


  • nfollmer
    replied to writing a bmp
    in C
    Ok, I'm stuck now. What's the difference between RGBTRIPLE and RGBQUAD? I have been looking through the MSDN documentation and they don't have any usage examples for either of these structs like they normally do.

    Here is what I have so far:

    Code:
    HANDLE file;
    	BITMAPFILEHEADER fileHeader;
    	BITMAPINFOHEADER fileInfo;
    	RGBTRIPLE *image;
    	image = new RGBTRIPLE[512*512];
    
    	file = CreateFile("example.bmp",GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_NEW,NULL,NULL);
    ...
    See more | Go to post

    Leave a comment:


  • nfollmer
    replied to writing a bmp
    in C
    Thanks, I figured it was something simple, but I have never really used image files before (besides in GUI). I'll whip something up and post it if it works. Thanks again!...
    See more | Go to post

    Leave a comment:


  • nfollmer
    replied to writing a bmp
    in C
    Sorry. C++. I sort of understand how to read a bmp, and I know they are stored upside down (but that won't matter for this program, I am just generating noise). After I fill my file information (BITMAPFILEHEAD ER and BITMAPINFOHEADE R) and fill my array with my RGB and bitcount information, how do I save it to the BMP format I guess is my question? Here is the only information I have already found on reading BMP's, so this is what I have been working...
    See more | Go to post
    Last edited by sicarie; May 2 '08, 06:16 PM. Reason: Link removed per Guidelines

    Leave a comment:


  • nfollmer
    started a topic writing a bmp
    in C

    writing a bmp

    This may seem like a newbish question (because it is) but can anyone point me in the right direction as to where I can find information on writing .bmp files? All I want to do is give the program a random number seed, and it generates a noise map from this seed. Sounds simply enough, but I don't know where to begin on actually writing the color values. I realize that bmp's color data is in BRG format and I should probably have this data stored in...
    See more | Go to post

  • nfollmer
    replied to Fill a web form using C#
    in .NET
    That did the trick, thats alot! I knew someone here could help me. If anyone else needs to see how this is done, (I did mine just a little different) I'll post the code once I have all the bugs worked out :)...
    See more | Go to post

    Leave a comment:


  • nfollmer
    replied to Fill a web form using C#
    in .NET
    The form is actually used to do cell phone activations, I wanted to make a small program that sent all the data to whatever service provider we were running credit for. And no, its not a web based app, its windows. I was going to install in on all the people who want to use it. Through further research on both websites I want to use, they are both using javascript and only one (cingular if your wondering) uses an html form and then passes that data...
    See more | Go to post

    Leave a comment:


  • nfollmer
    started a topic Fill a web form using C#
    in .NET

    Fill a web form using C#

    Hi,

    After getting so much help from this site, I decided to join! But thats beside the point....

    I'm fairly experienced in C#, but never did anything web related, so I need some help.

    What I want to do, is have a drivers license be scanned by our card readers, take all the information we need (dl number, state, address, name, date of birth) and place it into a form on another website, (autofill the information...
    See more | Go to post
No activity results to display
Show More
Working...