Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Check if Image is Blank

Posted on 2007-03-18
1
277 Views
Last Modified: 2007-03-18
Is there a way I can load an image and check if the image is blank(all white) with vb.net?
0
Comment
Question by:mxpoint
1 Comment
 
LVL 4

Accepted Solution

by:
cx323 earned 500 total points
ID: 18744523
Dim bmp As Bitmap = CType(Me.PictureBox1.Image, Bitmap) 'change to your picturebox
Dim y As Integer
Dim x As Integer
Dim bmpmaxX As Integer = bmp.Size.Width
Dim bmpmaxY As Integer = bmp.Size.Height
For x  = 0 To bmpmaxX - 1
      For y  = 0 To bmpmaxY - 1
                If Not bmp.GetPixel(x, y) = Color.White Then
                    'there's a pixel that is not white so do something else
                End If
        Next
Next
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question