Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6617679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:44:00+00:00 2026-05-25T20:44:00+00:00

I have some low detail images I’m rendering to the screen. I’m using a

  • 0

I have some low detail images I’m rendering to the screen. I’m using a bitmap as a buffer. Is there a way to re-size the bitmap (using “Nearest Neighbor”) in .net?

I’m using VB.net so all .net solutions are acceptable.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:44:01+00:00Added an answer on May 25, 2026 at 8:44 pm

    A simple Winforms example that draws a scaled image added as a resource with the name “SmallImage” with nearest neighbor interpolation:

    Public Class Form1
        Public Sub New()
            InitializeComponent()
            Me.SetStyle(ControlStyles.ResizeRedraw, True)
            Me.DoubleBuffered = True
            Me.bmp = My.Resources.SmallImage
        End Sub
    
        Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
            e.Graphics.InterpolationMode = Drawing2D.InterpolationMode.NearestNeighbor
            e.Graphics.PixelOffsetMode = Drawing2D.PixelOffsetMode.Half
            Dim h = Me.ClientSize.Width * bmp.Height / bmp.Width
            e.Graphics.DrawImage(bmp, New Rectangle(0, 0, Me.ClientSize.Width, h))
        End Sub
    
        Private bmp As Bitmap
    
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have some images (in front of my bachground-image) with low opacity(png format) and
I'm doing some performance tuning and capacity planning for a low-latency application and have
I have some files that are uuencoded, and I need to decode them, using
I have some data I need to display using MSChart, I am looking to
i have some low level image/texture operations where 32-bit colors are stored as UInt32
I have some files stored at amazon. all in private mode, and since I
I have some script in my default page that redirects users to language specific
I have some Java code which performs bitwise operations on a BitSet. I have
I have some interesting problem for an hour.. In my flex project, all width
I have some XML which contains records and sub records, like this: <data> <record

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.