Convert Images To Excel

in #utopian-io7 years ago (edited)

I've designed this easy yet functional project for coders that do excel and c # related software. On the one hand, it is a study where they learn the coding between c # and excel while they have fun. I hope you will like it.
what does it do;
it fills your images with each pixel of excel in pixels and provides a fun situation.
An application to present your loved ones

<h2>Ways to Use: <blockquote> <p dir="auto">Insert button<br /> Using the if else loop<br /> write a public method<br /> write a function<br /> Learn Bitmap<br /> Open a new Form Item<br /> hide the form<br /> Using Checkbox<br /> Using OpenFileDialog <p dir="auto">Browser Button Code: <pre><code>DialogResult dr = OpenFileDlg.ShowDialog(); TxtFilePicked.Text = OpenFileDlg.FileName; <p dir="auto">Draw Button Click Event Code: <pre><code>string filNameOrigin = TxtFilePicked.Text; if (TxtFilePicked.Text == "") { MessageBox.Show("You need to pick a image file first", "warning", MessageBoxButtons.OK); return; } int iColSpan=0; if (!Int32.TryParse(TxtColSpan.Text, out iColSpan) || iColSpan<10||iColSpan>500) { MessageBox.Show("Column span has to be an integer between 10 to 500", "warning", MessageBoxButtons.OK); return; } int iCellUnitHeight=0; if (!Int32.TryParse(TxtCellUnitHeight.Text, out iCellUnitHeight) || iCellUnitHeight < 10 || iCellUnitHeight > 20) { MessageBox.Show("Cell Unit Height has to be an integer between 10 to 20", "warning", MessageBoxButtons.OK); return; } Bitmap bitmapNewImg = ResizeImageWithRatio(filNameOrigin, iColSpan); if (bitmapNewImg != null) { ExcelProc(bitmapNewImg, iCellUnitHeight); bitmapNewImg.Dispose(); } **Clear Excel Button Click Event Code:** { DialogResult rsltYesNo = MessageBox.Show("This will clean all running Excel applications in memory (assume you already saved all your works). Continue?", "warning", MessageBoxButtons.YesNo); if (rsltYesNo == DialogResult.Yes) { var prs = Process.GetProcessesByName("EXCEL"); foreach (Process p in prs) { p.Kill(); } } } <p dir="auto"><strong>Use:<br /> After you open the application, click on the browse option and select your picture and click the draw button. then wait until you click. Result. <p dir="auto"><strong>Interface:<br /><br /> <strong>Github Project:<br /> <img src="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1514155391/qofefk0rq8bk2thqccnh.jpg" alt="Github project.jpg" srcset="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1514155391/qofefk0rq8bk2thqccnh.jpg 1x, https://images.hive.blog/1536x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1514155391/qofefk0rq8bk2thqccnh.jpg 2x" /><span> <img src="https://images.hive.blog/0x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1514155350/zwyvfpjsdgsxrgyqkjfd.gif" /> <p dir="auto"><span>My Github Project Picture: Profile:<img src="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1514304220/svzrjxfsvtsfjqbbd42w.jpg" srcset="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1514304220/svzrjxfsvtsfjqbbd42w.jpg 1x, https://images.hive.blog/1536x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1514304220/svzrjxfsvtsfjqbbd42w.jpg 2x" /> <p dir="auto"><br /> <br /><hr /><em>Posted on <a href="https://utopian.io/utopian-io/@sameddemir/convert-images-to-excel" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Utopian.io - Rewarding Open Source Contributors<hr /><span><a href="https://github.com/mrdmr/pc_shutdown_app" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/mrdmr/pc_shutdown_app<p>
Sort:  

Your contribution cannot be approved yet. See the Utopian Rules. Please edit your contribution to reapply for approval.

  • Please include information about the project, currently it lacks any description or documentation in the repro
  • Please also include a screenshot of your github repro to proof it is your work.
  • Please also add more information to the post as currently it is a bit short (should be as informative as possible)

You may edit your post here, as shown below:

You can contact us on Discord.
[utopian-moderator]

Updated Post

Before I accept, could you add a README/documentation in your repro?

Congratulations @sameddemir! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

<p dir="auto"><a href="http://steemitboard.com/@sameddemir" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/comments.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/comments.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/70x80/http://steemitboard.com/notifications/comments.png 2x" /> Award for the number of comments <p dir="auto">Click on any badge to view your own Board of Honor on SteemitBoard.<br /> For more information about SteemitBoard, click <a href="https://steemit.com/@steemitboard" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here <p dir="auto">If you no longer want to receive notifications, reply to this comment with the word <code>STOP <blockquote> <p dir="auto">By upvoting this notification, you can help all Steemit users. Learn how <a href="https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here!

Your contribution cannot be approved because it is not as informative as other contributions. See the Utopian Rules. Contributions need to be informative and descriptive in order to help readers and developers understand them.

You can contact us on Discord.
[utopian-moderator]