Friday, August 23, 2019

ImageUnion Application in C sharp

ImageUnion Application in C#
(Application for making Union of Images)
(Written by me in c# 2010)
.
On this year’s (2019Aug21Wed) birthday of mine, as I logged into my Twitter account I got a nice surprise of a lot of colorful balloons flying from bottom to top inside browser's client area. I enjoyed the experience very much and recalled that in previous years this happened as well. Meanwhile I kept clicking the reload button of browser to get another show of flying balloons few more times.
.
To make that moment memorable I took some screen-shots of balloon demo as well. Selected one of them, edited eg added some thanking text to it and posted on twitter.
.
After doing that I somehow saw a link just next to my information under banner. Link was saying "Happy Birthday!". I moved mouse pointer over link and clicked it. But may be because I was at the same time thinking something else I did not notice that each click was giving a new balloon demo. After afew clicks I did noticed and did clicked a few more times and at the same time enjoyed as well.
.
As I was enjoying reloading twitter page I found something very interesting in right column of Twitter page under the heading of "You might like". Immediately I took screen-shot and saved image to HDD. Because of that new found interest/attraction I clicked on "Happy Birthday!" link a few more times and took a few more screen-shots. After that and during comparing images for final selection I found that some images had more balloons and some less depending on time when I took those screen-shots, plus each image had different arrangement of balloons. I was not able to select any one of them for uploading/sharing on social media. So I decided to make an application for mixing all images together in such a way that all balloons from all screen-shots become part of one image. Background was already same in all images.
.
Therefore after making a skeleton idea for an application I started working on that and after some hours completed that successfully in c#. That application performs it's task in following three steps:
(1)_Load basic image: In this step user selects basic image with which he/she wants other images to mix.
(2)_Load Images to mix: In this step user selects images for mixing with image selected in first step.
(3)_Mix source images and save target image: In this step application mixes all images together and saves resulted image to HDD.
.
After making application I tested it a few times and felt satisfaction on the success of the application. I am sharing screen-shot of the application and their description in the following.
.
Screen shots of application and their description:
Following are screen shots of ImageUnion application at different stages with their description.
.
Application on Load:
Application looks like in the following image when it loads. Menu is on top line and status-bar is at bottom line. Area in between them is divided in three columns. In left column is option for selecting base image. In center column is option for selecting images for mixing with base image. In right column is option for generating mixed image. Mixed image gets saved automatically.
.
.

.
Help/About:
Application looks like in the following image when 'About' in 'Help' menu is clicked. This menu-item displays basic information about application and it's author.
.
.

.
Help/Purpose:
Application looks like in the following image when 'Purpose' in 'Help' menu is clicked. This menu-item display text explaining purpose of the application.
.
.

.
Help/Copyright:
Application looks like in the following image when 'Copyright' in 'Help' menu is clicked. This menu-item displays copyright text for this application.
.
.

.
Base image selected:
Application looks like in the following image when 'Select ...' button in left column "Base image to Union" is clicked and an image is selected.
.
.

.
Remaining image Selection:
(a)_Remaining images in process of selection:
Application looks like in the following image when 'Select ...' button in center column "Other images to Union" is clicked and one or more images are selected ans Remaining images selection process runs.
.
.

.
Remaining images selected:
Application looks like in the following image when 'Select ...' button in center column "Other images to Union" is clicked and one or more images are selected.
.
.

.
Target image generation:
(a)_Target image in process of generation:
Application looks like in the following image when 'Generate' button in right column "Unioned image" is clicked and some processing is done.
.
.

.
(b)_Target image generated and saved:
Application looks like in the following image when 'Generate' button in right column "Unioned image" is clicked and required image generation process completes.
.
.

.
Image of page that inspired this application:
And finally I am sharing in the following the image of screen-shot of the twitter page (as it was then) because of which I made this application. This image is generated by application by mixing many screen-shot images of Twitter page.
.

.

.
Enjoy Complete Source code of application written and compiled in visual studio 2010 Ultimate by me. Download it. Extract it. Read 'ReadMeFirst.txt' file and do as is explained in it.
.

.
Colors used in this post:
Border color rgb(64, 128, 128) #408080
Background color rgb(230, 242, 242) #e6f2f2
.

.
UPDATE [2020 Oct 01 Thu]
During previous some days I made some changes in ImageUnion-1 application's User interface and Logic and re-ran it. Then I took ScreenShots of application while it was running, on it's different stages. Then I edited those ScreenShot phots and Unioned photo. Then I replaced original photos of this post with the new ones.
.

.
If there are any mistakes then I will surely remove them whenever found.
.

.


Thursday, May 16, 2019

From Foxy to FOXA - 190516Th

From Foxy to FOXA
Version: 190516Th
(A continuing idea in it's various stages of evolution)
.
Next versions:
FOXA - Car of my Dreams - 201219Sa
Version: 201219Sa
.
Volkswagen Beetle (foxy) was the first car our father purchased in late 1960's. During those days we were living in Kotli AJK as during those days our father was posted as Major in Field ambulance kotli AJK. Then Kotli was a very small beautiful city situated between two mountains and beside one river. Memories of that time are still almost fresh in my mind although I was in 2nd class then.
.
We traveled a lot on that red car and also enjoyed doing so very much. Sometimes we used to go to Rawalpindi for doing shopping. Sometimes we used to go to different cities to meet our relatives and/or father's friends. Often we used to go to different nearby areas for picnic.
.
And after so many years I still enjoy telling stories of/about that red foxy car to my 5 year old niece ishi and she also enjoy. Plus whenever I found any foxy car parked in our neighborhood or parked near any park we visit I show that foxy to ishi. Ishi always takes a lot of interest in those foxy cars, first because once her grandfather also had foxy car and second because of the unique shape of foxy car and third because I tell stories about foxy to her.
.
About one decade ago while I was doing some kitchen work in lawn of our home some ideas visited my mind. Then I was taking out slugs from flower-beds and flower-pots and collecting them in another pot and at the same time I was also observing slugs in some details.
.
One thing I observed was that slugs were very much looking like chicken liver. Slug’s resemblance to chicken liver gave me an idea that why not we make farms of slugs on large scale and use them as food. May be this idea came across my mind because I like chicken liver very much. (I do not know slugs are eatable or not.)
.
Second thing I observed was that slugs were very aerodynamic in shape. Because since my childhood I was making drawings of cars we had, aerodynamic shaped slug’s design and their look alike foxy’s design somehow got mixed in my mind. This in-mind mixing created a new design for car.
.
To achieve car design looking like slug, I in imagination cut two foxy cars right after their first row of seats and then joined, back parts of both cars together. To me that design looked very interesting but that effort ended then and there. I never even tried to convert that idea to drawing.
.
Then a few months ago my interest in Foxy car again elevated to new heights because of two un-related almost simultaneous events. Reason number one for my new found interest in foxy car was German ambassador to Pakistan and his foxy car. Reason number two for my new found interest in foxy car was that during cleaning old books of my father I found purchase voucher of my father’s foxy car in one of his diaries. For some days I even remained interested in searching for that car of us via internet.
.
Good thing is that I am already revising/practicing Microsoft Paint, for some time, so that I can easily guide my niece ishi during her learning/playing session with computer. So I decided to give my above mentioned idea of car design based on Slug and Foxy a try. I quickly searched on net found a useful drawing of Foxy car and started converting that drawing to my idea. Ishi also took part in this adventure and enjoyed the experience very much. She is also persuading me to buy foxy car and I am thinking about bringing one foxy car on rent for some days so that ishi can enjoy.
.
Following image is the end result or finished product of above described sessions of imaginations.
.

.
.

.
Although I was thinking of making entire drawing myself but ended up in above drawing based on another free drawing I found on internet. All this happened because of my laziness. Surely I will make complete drawing myself and put that drawing in it's place.
.
After making above drawing my new task was to give some name to this new car-of-imagination design. First I named it “Foxy Automobile” then “Foxy Auto” then “FoxAuto” then “FoxA” and then “FOXA”.
.
[ To be continued . . . ]
.

.
Colors used in this post:
Border color rgb(255 , 0 , 0) #FF0000
Background color rgb(255 , 222 , 222) #FFDEDE
.
.

If there are any mistakes then I will surely remove them whenever found.

.


Friday, April 19, 2019

Car art 2019Mar06Wed by me

CarArt 2019Mar06Wed By Me
(Made in MicroSoft Paint)
.
Few months ago I was revising Microsoft Paint so that I have fewer problems while helping Eshaal, my 5 years old niece, playing with Microsoft Paint. During that session I practiced different features of Microsoft Paint e.g. Shapes, Colors etc. I remember that at the end of that session I was feeling lazy and sleepy and was playing with "Polygon in Shapes in Home" and clicking on drawing area almost randomly and then erasing and then re-drawing. In one try I started to make car and in one go I did made a figure looking almost like a real car. I said to myself "Interesting . . .”
.
I do not know why but I saved that drawing of car and kept practicing Microsoft Paint. Second thing which looked interesting to me was "Fill in Shapes in Home". And in that Crayon looked more interesting to me. So I practiced with these options in some detail. I used "Rectangle from Shapes from Home" and "Crayon from Fill from Shapes from Home". Then made a almost maximum size possible rectangle on drawing area and moved mouse over different colors for enjoying output. At the same time I kept pasting previously made car over image with rectangle to see how it looks. After some time I liked one color combination. Saved that drawing on hard disk and then uploaded same drawing file on my WordPress.com blog: Car art 2019 by me.
.
And now few days ago I made another idea of re-creating that car drawing with all colors displayed in Microsoft Paint "Colors in Home" section. So I re-created that drawing and this time number of drawing was 18. Then added some information (Art name, Artist name and Creation Date/Time) to all images. Then I used an online service for adding water-mark and logo to all images. After that I used another online service for making animated gif from those watermarked images.
.
Following is the end result or finished product of above described practice session.
.

.
.

.
Also "Oval from Shapes from Home" was used for making tires of car.
.

If there are any mistakes then I will surely remove them whenever found.

.


Friday, March 22, 2019

Happy Pakistan Resolution Day – 2019

~~~~~ ~~~~~ ~~~~~

(Happy Pakistan resolution day - 2019)
"Long Live Pakistan"

~~~~~ ~~~~~ ~~~~~

Pakistan resolution day
reminds us of year 1940.
When
Muslims of subcontinent
Demanded a separate homeland
And
under Leadership of our Quaid
Muhammad Ali Jinnah
And
ALLAH‘s countless blessings
Pakistan came into existence.
Today w are an independent nation.
We need to remain united as one nation.

~~~~~ ~~~~~ ~~~~~

May ALLAH bless us all with integrity
To be proud of our country.
May we all understand
the true meaning of
PAKISTAN RESOLUTION
Passed on 1940-March-23.

Ameen!

~~~~~ ~~~~~ ~~~~~

Wednesday, March 6, 2019

Banknotes and Coins made simple

Banknotes and Coins made simple
(A gernalised design for Banknotes and Coins for Pakistan)
(Easily adaptable by any country)
.
Few days ago I showed my collection of old Banknotes and Coins of mostly Pakistani origin to my niece. During that session I wondered why those coins had their particular shape and why they were of different sizes. I did that because I wanted to tell some story related to color, size and shape of banknotes and coins to my niece ISHI. During that session I also noticed that some coins, from different times, were very near to size and shape of each other. Plus from time to time size of banknotes were also changing. For example on one occasion banknote of Rs 10 from one time was smaller than banknote of Rs 5 from another time. This was all confusing.
.
So while showing banknotes and coins to my niece I made an idea for design of banknotes and coins so that they look following some standard and any one can make/create and tell story about them easily.
.
That idea had two parts, one for coins and another for banknotes. I am describing both parts of idea in the following paragraphs.
.
Coins:
(1)_ First I wanted to have most of those coins back in circulation we had in our childhood. According to my memory we had coins of 1 paisa, 2 paisa, 5 paisa, 10 paisa, 25 paisa, 50 paisa and some more.
(2)_ Second I wanted to design them based on basic geometric shapes so that anyone can easily differentiate them.
(3)_ Third I wanted to have all coins of same size meaning they will fit in particular sized square for example one inch square.
(4)_ Forth idea was to make coins from non-corroding more than one metal and/or alloys of contrasting colors to make them look better.
(5)_ Fifth idea was to have suitable sized curve in place of any angled point in all coins.
.
Final shapes of coins I made from basic geometric shapes  are as follows:
.

.
`
Shape Shape's Name Coin's value
Circle 1 paisa
Triangle 2 paisa
Square 5 paisa
Pentagon 10 paisa
Rhombus 25 paisa
Decafoil 50 paisa
.

.
[2019 Mar 07 Thu] Last night and today morning I re-created diagrams of my proposed coins I shared above. This time I arranged all coins in one image for easy handling. Plus this time shape choices for coins are also different. I think everything else is same as before. This new creation is shared in the following image. For creating this following image main work is done in MicroSoft PowerPoint.
.

.
.

.
Another idea was to make coins in such a way that they last for centuries.
.
Banknotes:
For banknotes also I found some problems. Main was because of different size for different value banknotes it is difficult to handle even small bundles of different value banknotes together. Another problem was that they deteriorate very easily, especially when they come in contact with water.
.
So I made some ideas for banknotes also which are described in the following:.
(1)_ First idea was to make banknotes of every/any value of same size and different, easily differentiable, colors. I chose 16:9 as banknote dimension with length of longer side equal to between 5 to 7 inches. (16:9 (1.77:1 = 42:32) is an aspect ratio with a width of 16 units and height of 9).
(2)_ Second idea was to make banknotes from non-deteriorating, long-life materials like carbon fiber etc.
.

If there are any mistakes then I will surely remove them whenever found.

.


Sunday, January 6, 2019

Happy 8000 PageViews - (2019 Jan 07 Mon)

CONGRATULATIONS
.
Today
On 2019 Jan 07 Mon 
(Pakistan standard time UTC+05:00)
my this Blog reached 8000 page views mark.
.
A lot of THANKS to
Visitors, Viewers, Readers and Wanderers.
.
Please keep visiting this blog
and
Tell others about it.
.
Congratulations to me also.