C :: Create Console Based Application That Can Join And Split Bitmap Image

Jun 27, 2013

i have to create a console based application in c language that can join and split bitmap images. the requirements of the application are as follows :

1. Split Image
Enter number of parts:
Enter source image path:
Enter destination folder:
2. Join Images (all images should be of same width and height)
Enter image path:
Join more Image (y/n):
3. Exit

Take care of following things:

- Application should show number of images processed while running.
- Acceptable Image format is BMP only.
- Application should give all the validations for correct image name, type, size, path, etc.

View 2 Replies


ADVERTISEMENT

C++ :: How To Create Text Based Game Running On Console

Mar 12, 2013

I want to create a text-based game with C++, running on the console. I have made some other text-based console games.

Which is the most interesting text-based game to learn how to program for beginners?

View 2 Replies View Related

C :: Resize A Bitmap Image

Aug 22, 2014

I am trying to re-size a bitmap image for a class.They gave us two options to use to do the program with: an array or move the file position indicator. I want to use the file option. All the bitmap header info is checking out. The file after being re-sized should be 822 bytes but it is 1.6 KiB and the image is distorted.

Code:

#include <stdint.h>
/**
* Common Data Types
*
* The data types in this section are essentially aliases for C/C++
* primitive data types.

[Code]...

View 2 Replies View Related

C++ :: Negating A Bitmap Image

Jan 21, 2012

Writing a program to negate a bitmap image. The program as I have it is asking the user to input a value for the RGB values. But how do I set it up to give the negative of each colour? It has been suggested using the & operator to negate the image inside nested loops.

Also, the RGBQUAD structure was copied into my main program from a BITMAP.H file we were given. However, is it okay just to leave that in the .h file, and just call it from my main program ....if that makes sense?

Anyway, here is my code so far

#include <iostream>
#include <fstream> //Used for file I/O
#include <cstdlib> //For exit
#include <string>
#include <algorithm> // for remove_if
#include <cctype> // for iswspace

[Code] ....

View 14 Replies View Related

C :: Possible To Split Command Console Into 2 Parts - Visual And Text Area

Feb 1, 2015

I have had experience in programming from python (slightly related, html/css) and the computercraft from minecraff (basic i think it is).

My question is mainly about the C and past experience with the computercraft.

1. Is it possible to split the command console into 2 parts (a visual area and a text area)
2. Is it possible to use any form of pixel art or custom characters within any command console using C.

View 2 Replies View Related

C++ :: Split Image To 3 Channels - Opencv Error

Mar 18, 2013

I am currently planning on splitting my image into 3 channels so i can get the RGB values of an image to plot a scatter graph so i can model is using a normal distribtion calculating the covariance matrix, mean, etc. then calculate distance between the background points and the actual image to segment the image.

Now in my first task, i have wrote the following code.

VideoCapture cam(0);
//int id=0;
Mat image, Rch,Gch,Bch;
vector<Mat> rgb(3); //RGB is a vector of 3 matrices
namedWindow("window");

[Code] ....

but as soon as it reaches the split function, i step through it, it causes a unhandled exception error. access violation writing location 0xfeeefeee.

I am still new to opencv, so am not used to dealing with unhandled exception error.

I tried adding items into the vector still error, either via push_back or general assignment i.e. rgb[0] = Rch or Bch still error.

View 6 Replies View Related

Visual C++ :: Using 2D Array - Displaying Bitmap Image With Scrolling

Mar 11, 2014

My requirement is,

Read *.bmp image and displaying bitmap image with scrollbar in a MFC dialog application.

I was done using this

I was read the *.bmp image as a pixel data and stored by 2D Array,

Now i want to Display this 2D array as bitmap image with scrollbar separately in the same dialog. How can i display bitmap with scrollbar using 2D array?

View 10 Replies View Related

C++ :: Class Which Loads Bitmap Image Into One Dimension Char Array

Aug 27, 2013

I am writing a class which loads a bitmap image into a one dimension char* array.

This class has methods to allow for resampling and cropping the image before saving the bitmap image. It works perfectly for all images in which the width is divisible by 4. However when the width is not divisible by 4 the resulting bitmap is all mixed up.

I have spent much of the day googling this problem but to no avail. I know it is a problem with making sure the scanlines are DWORD aligned, and I believe I have done that correctly. I suspect that the problem is that I need to take the padding into account during the crop for loops but am lost to how to do this.

BTW: Coding on Linux using GCC

The following code is a cut down version from my bitmap class. I have removed methods which are not needed to make reading a little easier.

#include "BMP.h"
// FIXME (nikki#1#): Portrait bug on images of specific sizes
// TODO (nikki#1#): Memory leak checks
// THIS METHOD WRITES A BITMAP FILE FROM THE CHAR ARRAY .
bool BMP::saveBMP(string fileName, string *err) {
FILE *filePtr;

[Code]...

View 2 Replies View Related

C Sharp :: Run Application When Log Off In Console Application

Oct 4, 2012

i have task scheduling application which execute every 30 minute i want to keep this process when system is log off in c# console application

View 2 Replies View Related

C++ :: Converting Console App To Larger GUI Based App

Oct 12, 2012

We never got into any gui stuff. It was strictly console apps. That being said I have been able to create a few small apps. I would like to start to create GUI based apps but I am kind of overwhelmed at the choices. I dont know where to go from here. Since I have c++ experience I would think Visual C++ would be the choice but i have been reading a lot of forums and getting other info.

Is there another language I should look at the would allow me to convert my program quicker or easier?

The console program I already created is very very simple and want to make a gui for.

Quick break down.

Reads file
Changes file contents based on search string,
saves and closes file
and kills a windows service
exits

Only thing I want to add would be the ability to run the file from a remote site within the company LAN(not a priority though). Currently it needs to be run locally on the server.

View 5 Replies View Related

C++ :: Adding UI To Console Application

Apr 6, 2013

Any tutorials on adding a UI to a console application? All I really need is a button that will run one function every time I click it.

View 1 Replies View Related

Visual C++ :: Run MFC Application From Console?

Feb 7, 2013

I have a question about to run an MFC dialog based C++ application from console: if I run my application from console, I see the application start and the console immediately back to prompt. I need that console wait the application exit before show me the prompt again. I tried on Visual Studio 6, 2005 and 2010 but the behavior is the same.

View 3 Replies View Related

C++ :: Adding Image Into Text Console

May 6, 2013

I would like to add an image to this code where the arrows are:

#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;

/*VARIABLES*/
float menuoption;
float minecraftoption;
int mobdetail;

[Code] ....

What is the code for adding an image (btw- I can't use Visual Studio C++ cause it lags so much!)

If code has some errors in it - I had to shorten it because it was 10,000 letters!

View 1 Replies View Related

C :: Make Console Application Run As Service

Sep 20, 2013

I'm trying to make this run as a service so that kbhit can be interacted with even when the console is out of focus. How would I do this?

View 3 Replies View Related

C++ :: Console Application Should Be Like A Command Prompt

Feb 10, 2015

my C++ console application should be like a command prompt. There are "command lines" to execute in the command prompt.Here are my main prompts for spotlight:

Encode - New data entry
View - Read data from text file
Search - Find record from text file
Update - Save changes per text line from the existing text file
Delete - Delete lines from the text file

Now, I manage to do the tasks for Encode, View, and Search..But unfortunately, not in Update..I've been working this for a week already..

#include "stdafx.h"
#include "iostream"
#include "string"
#include "fstream"
using namespace std; //to omit the std
}

[code]....

View 2 Replies View Related

C++ :: API For Playing Sounds On Console Application

Aug 8, 2013

I'm thinking of making a horror text-based game, which would use sounds, if you could also tell me of an API to display images in an alternate window that would be nice.

View 6 Replies View Related

C++ :: Capture Console Screen And Save To Image?

Jun 7, 2014

i need to capture the console screen and save to a image:)

View 3 Replies View Related

C++ :: Making Console Application To Open Webpage?

Mar 23, 2013

I know how to make a console application open a browser say like by entering

system("start iexplore.exe");

But that just goes to the browsers default start up page. The code to make it open a website of my choice (if its possible to on a console app).

(BTW I'm using Microsoft Visual C++ 2010 Express)

View 2 Replies View Related

C++ :: File I/O - Entry Point For Console Application

Aug 1, 2013

I am stuck in visual studio 2010 file I/O ... i placed file1 file2 using the following program under VS2010/projects/projectname/file, file1 and also in debug also once......I am actually using cmd line arguments in debug mode

Code:
// feof files.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
int main(int argc, char* argv[])

[Code] ....

I dont think in C++ forum the printf will do any problem...when i run the program it says "cannot open source file" and a window appears saying"Debug assertion failed"....and other details such as Expressionstream!=NULL).perror

View 4 Replies View Related

C Sharp :: Add Multiple Records In Console Application?

Nov 22, 2012

how l can add multiple records when using the console app. This is the excercise l have done so far:

string name;
string surname;
int score;           
Console.Write("Enter Name:");

[Code]....

l want to be able to add more student records and display the student with the top score.

View 4 Replies View Related

C++ :: How To Connect Firebird Database With Console Application

Mar 26, 2012

how to connect a Firebird database with a Devc++ console application? I have tried different things with no success.

View 5 Replies View Related

C++ :: Pixelate Image Based On User Input

Dec 24, 2014

My assignment is to pixelate an image based on users input. I have a structure that stores the image, and in this structure I'm storing the height and width and a dynamic array of RGBA struct.

This is my function. my main issue (that I've found) is offsetting and figuring out a way to handle the "edge" if the dimensions don't add up to the set pixelation size.

// @------------- Pixelation X
bool filter_pixelation(float percentageX, float percentageY, Picture& pic) {
// URL
/* 50% of 80 = (50/100) * 80 = 40 */
size_t perX = percentageX * (float)pic.width;
size_t perY = percentageY * (float)pic.height;

[Code] ....

Here is the getIndex function:

int getIndex(int x, int y, int width) {
return y * width + x;
}

View 1 Replies View Related

C++ :: Creating Another Source File In Console Application - VS Error

Jan 5, 2014

All I am trying to do is create another source file in a simple Visual Studio C++ console application.

I get the following errors:

intellisense: expected a delcaration
error C2447: "{" missing function header

I didn't create another int main () in this source file, so what is causing these errors.

View 1 Replies View Related

C++ :: Simple System Management Console Application - Polymorphic?

Mar 16, 2014

I'm building a simple system management console application. I've abstracted the console "Menu" and derived from it a "WelcomeMenu" class with public inheritance.

The problem is that when instantiating a Menu* object and assigning it a new WelcomeMenu...I'm still not able to use WelcomeMenu's "ShowWelcomeMessage() with the Menu* object. Instead, I get "error: Class 'Menu' has no member function call 'ShowWelcomeMessage().' Which is true, but I thought a pointer-to-Menu object should be able to use the public methods of derived classes without casting in this case. Code follows.

// Menu and WelcomeMenu Classes
#ifndef MENU_H
#define MENU_H

#include <ctime>
#include <iostream>
#include <string>

[Code] .....

I get a compiler error when running this simple program:

#include <iostream>
#include <ctime>
#include "Utilities.h"
#include "Menu.h"
using namespace std;

[Code]....

View 2 Replies View Related

C# :: Reading Standard Output From Console Application In Realtime?

Jul 12, 2014

I'm having some trouble working out how to read the console output in realtime, here's my code:

The button which starts the console application:

private void HELPRUN_Click(object sender, EventArgs e)
{
this.Output.Text = "";

[Code]....

View 6 Replies View Related

C Sharp :: Open New Cmd From Console Application And Write Text

Oct 23, 2012

I want to open one new CMD from console application, write text into the new CMD and then coming back to the control on the old cmd. (like interactively working on the both)

look into the below code

Process P1 = Process.Start(@"C:WINDOWSsystem32cmd.exe");
P1.StartInfo.RedirectStandardInput = true;
P1.StartInfo.RedirectStandardOutput = true;
P1.StartInfo.UseShellExecute = false;
StreamWriter wr = P1.StandardInput;
wr.WriteLine("First line in New Cmd");
Console.WriteLine("First line in Old Cmd");
wr.WriteLine("Second line in New Cmd");
Console.WriteLine("Second line in Old Cmd");

it is giving the exception "StandardIn has not been redirected"

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved