473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Scaling - Enlarge a pixel to a bigger size

Hi everyone,
I am working on a project with a paint in VB6. I only need 16x16 pixels, but it's too small for me to draw on the picture box if I set it to 16x16. So, how can I enlarge a pixel to bigger size but still in 16x16 pixels?
Mar 29 '13 #1
9 1362
Rabbit
12,516 Expert Mod 8TB
Set it to 32x32 and draw 2x2 so you take up more space but in essence it's 16x16.
Mar 29 '13 #2
How can I set the paint into grid, so i can know which point I am drawing? Because this paint is used to input into a MCU and be displayed in LED lights.




For you reference, this is my paint size:
picDraw.Width = 16 * 100
picDraw.Height = 16 * 100

picDraw.ScaleWidth = 16
picDraw.ScaleHeight = 16

And my pen width:
picDraw.DrawWidth = 16
Mar 31 '13 #3
Rabbit
12,516 Expert Mod 8TB
I have no idea what you just said. Please try explaining it again with in a different, clearer way.
Mar 31 '13 #4
Now is look like this:
https://www.dropbox.com/s/z3fef3hfwf7uwlo/Capture.JPG
But i want it look like this:
https://www.dropbox.com/s/76uepz92bujbuwj/Capture2.JPG

So the point that I draw can be restricted in a region and I am able to know which LED is going to light up.

Also, the output picture is saved in 103 x103. How can i set it to 16x16? Thank you.
Apr 1 '13 #5
Rabbit
12,516 Expert Mod 8TB
Please attach the photos to the thread itself. I don't click on links from people I don't know.
Apr 1 '13 #6
First:


Second:



Can u see the pics?
Apr 1 '13 #7
Rabbit
12,516 Expert Mod 8TB
I cannot. Instead of linking to them, try attaching them to the thread itself.
Apr 1 '13 #8
Ya.. I tried but the website said invalid. could u please click on the links I posted? It's just "dropbox" a cloud storage website.
Apr 2 '13 #9
Rabbit
12,516 Expert Mod 8TB
Even if I wanted to I can't. Our firewall blocks file storage services as a security precaution.
Apr 2 '13 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: jp | last post by:
bigger image opens in new window within an existing javascript. I am working within a existing javascript. see www.art4companies.nl and press kunstenaars than press any name to see what I mean....
3
by: Qoo | last post by:
Is there any tools like "stubedit" can let me enlarge the stack size under linux ? And I was quite wondering what's the default stack size of the program compiled with gcc without any parameter...
8
by: active | last post by:
How can I increase the size of a bitmap while preserving the image in it. I tried (among many other things) : b1 = New Drawing.Bitmap(b1, picData.Width, picData.Height) and it doesn't seem...
5
by: dovgani | last post by:
I have an unmanaged MFC project. The output is static lib. I would like to compile using /clr option. The native lib size is 64 megs and with /clr and /O1 options is 940 megs. Is it possibly...
1
by: Ivan P | last post by:
Hello! How to prevent scaling (resizing to bigger) controls like Dialog and buttons on resource file when user run application in 120dpi. I want my dialog size remains same as in 92dpi. I tried...
6
by: Jim | last post by:
I tried to build a "form" layout without using table like this http://www.coolshare.com/temp/images/css.jpg In order to get the layout, I need to set the light blue area at each line to a fix...
24
by: Harris Kosmidis | last post by:
I have a site up and running (www.solsoft.gr). I tested it with FF2 and IE6 and works ok with some IE hacks. Ok the CSS isn't good cause I started designing it with another look and the customer...
2
by: dpicella | last post by:
I have a semi-urgent need to solve a problem in Java. I have three small images that I need to hold to a constant size (e.g., 1 inch) regardless of both monitor size and resolution. Basically...
2
by: mindshare | last post by:
Hi everyone, Happy New Year, I found these line of javascript code to enlarge your font size. this works but i can only set it up in one area or div area. is there a way i can use this function in...
1
by: maximus tee | last post by:
hi, i'm using Python 2.5 and Windows XP. i'm wondering whether is a way to enlarge the font size when print out to CMD window. For eg: print "Hello World". It will print out with standard size in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.