Find Jobs
Hire Freelancers

ASP.NET (VB) Image Resizing Problem

$30-40 USD

Selesai
Dibuat lebih dari 19 tahun yang lalu

$30-40 USD

Dibayar ketika dikirim
This particular sub-routine changes two variables (intCurrentWidth & intCurrentHeight), that are public to the webform that I've built. The problem is that when an image is larger than the maximum allowed size AND the width is also larger than the maximum allowed size, part of the image gets chopped off in its width. Here's the code: Private Sub ResizeImage(ByRef imageWidth As Integer, ByRef imageHeight As Integer, ByVal maxWidth As Integer, ByVal maxHeight As Integer) intCurrentHeight = imageHeight intCurrentWidth = imageWidth If intCurrentHeight < maxHeight AND intCurrentWidth < maxWidth Then Exit Sub If imageWidth > imageHeight Then If imageWidth > maxWidth Then intCurrentHeight = CType(imageHeight * (maxWidth / imageWidth), Integer) intCurrentWidth = maxWidth End If End If If imageHeight > imageWidth Then If imageHeight > maxHeight Then intCurrentWidth = CType(imageWidth * (maxHeight / imageHeight), Integer) intCurrentHeight = maxHeight End If End If If imageWidth > maxWidth Then intCurrentWidth = maxWidth intCurrentHeight = CType(imageHeight * (maxWidth / imageWidth), Integer) End If If imageHeight > maxHeight THen intCurrentHeight = maxHeight intCurrentWidth = CType(imageWidth * (maxHeight / imageHeight), Integer) End If End Sub One last thing: DO NOT BID UNLESS YOU ALREADY KNOW WHAT THE PROBLEM IS AND HOW TO FIX IT. I DO NOT CARE IF THE WHOLE SUBROUTINE IS COMPLETELY RE-WRITTEN. THIS NEEDS TO BE DELIVERED BY TUESDAY 10/19! ## Deliverables The subroutine fixed, and delivered. ## Platform Visual [login to view URL], ASP.NET
ID Proyek: 3394861

Tentang proyek

1 proposal
Proyek remot
Aktif 20 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
See private message.
$17 USD dalam 1 hari
4,9 (78 ulasan)
6,0
6,0

Tentang klien

Bendera UNITED STATES
Thomasville, United States
5,0
5
Anggota sejak Jan 31, 2003

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.