Resize Pictures With Antialias ??
I am looking for a way to resize pictures with some resize method, like Bi-Cubic or Bi-Linear (by the way, what does antialiasing mean?). It is nessesary to me because pictures look horrible when i zoomin or zoomout them in VB with PaintPicture method.
Does anybody have appropriate function or maybe another idea how to avoid this?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Resize Pictures
I need a little help on this one, the user needs to be able to select a folder (got that taken care of) and the folder will contain a bunch of .jpg files. The program than needs to resize the images to 200x100 and save the resized image into /resized1 and then it needs to resize the original files again to 500x1000 and save those resized images into /reized2 and finally delete the original .jpg images in the root folder
thanks
Dimava
Resize Pictures
is there any way to resize a pic beside StretchBlt?
When I use StretchBlt it creates wrong colors...
How To Resize Pictures In Picture Box?
I have a picture box of size 500x500.Then i want to put a picture of size 800x800 in the picture box with out increasing the size of the picture box.That means how to resize the picture in the picture box without adjusting the picturebox size?
those who know this please let me know
thanks
Resizing Pictures In Form Resize And Multiple Resolutions
Hi, i have an application in which i have a picture box. the form is resizable, so the picturebox is supposed to resize too.
Is there an api or a property or control that lets me resize also the loaded picture, without bloating application resource size with adding multiple pictures of the same picture?
Antialias TTF
Does anyone have experience useing gdi to render an anti-aliased TrueType Font?
Antialias With Line W/o API Or DX?
I am using the line function with a large value for drawwidth to draw a path for a maze. The line function rounds off the ends of the lines, which is ok, but the curves on the white lines against a dark background are not smooth. Is there a way to implement antialias on line-drawing? Or is there a way to have the line function not round of the ends of the lines?
AntiAlias Text Please..
hello here is my code
VB Code:
Private Sub Command1_Click() With Picture1 Picture1.ScaleMode = 3 'Pixel .FontName = Combo1.Text .ForeColor = vbWhite .FontSize = Text5.Text .AutoRedraw = True .Cls .PaintPicture Image1.Picture, 0, 0 .PaintPicture Image2.Picture, 0, 0, 150, 150 Picture1.CurrentX = Text3.Text Picture1.CurrentY = Text4.Text Picture1.Print Text2.Text End If End With End Sub
now how do i make the text it prints AntiAlias ?
Can't Get DX7 To Full-Scene Antialias
Put simply... that's my problem. I've had it working fine in DX8 before, but now I've reverted to DX7 I'm struggling.
I've been through the SDK samples, directX4VB tutorials and a couple of other I found on the net, but I can't find a sample which even tries to use it.
So resorting to type.. dig in to the help file.
I've found the RasterCaps and found my system should be able to Antialias SortDependent or SortIndependant. I've set the Caps2 DDSCAPS2_HINTANTIALIASING flag, and ensured that the surface also has the DDSCAPS_3DDEVICE flag set before I create it.
I've Set the RenderState either SortDependent or Independent but alas no joy.
I think most likely I've missed something... if so.. WHAT?
or
it's working but it's not having the desired effect.
I attach noanti.jpg for your viewing "pleasure". Note - The thin strips are actually very thin textured 2 Primitive TriStrips.. rather than part of a texture or drawn as lines. Each Tile and strip is drawn seperately, though all the tiles are drawn, then the strips (probably).
The top strip shows what I get when looking "Top Down".. I've resized the actual screen shots so they are all the same size, but as you can see as I Zoom out some of the thin "strips" disappear completely... would antialias help here?
The bottom strip is from a "fly-around" view showing what I get as the camera moves.. the 45° image is "OK".. but at "lower" angles it starts looking awful. I'm sure antialias would help here.
So any help appreciated... if you know of (or have) a DX7 IM sample that you know uses Full-Scene antialias successfully I'd be grateful for a URL or an attachment.... I generally pretty resourceful but this is starting to get me down.
TIA
Drawing Opacity? Antialias?
I've been searching around for a way to be able to draw but with the opacity as something like 50% (just an example) on programs like paint shop pro you can change the opacity and hardness.
does anyone know if this is possible to do in Visual basic? i've got a feeling it can be done in VB.net.. but i don't really want to have to switch over to a new programming language (having to buy the software mainly, etc.)
is there a way to maybe add an antialias onto a picture.Line or change the opacity (so when you draw over other lines it builds up)
..maybe i've bitten off more than i can chew for this program :/
Antialias Text Control
Does anyone know how to antialias a label control? I've seen a couple examples of antialiased text but in a picturebox. I need it on the form this way. I would like it to support any font.
Any ideas?
Line Antialias Function
Does anyone have an antialias (smoothing) function that they have written for straight lines. I have thrown a function together but I can either spend more time on it or be lazy and hope someone else has already made a good one
How To Antialias The Edges Of A Form?
Hi, I'm working on an app in VB6. It will play animations on top of the desktop.
So far I have been able to:
Create a form that uses a colorkey to make the form transparent (cut out).
Put the form 'always on top' so that the form will always be visible.
Play an AVI-file in the form. When the avi is playing the form changes it shape since the colorkey transparency is applied to the entire form.
--------
All this sums up to an application that can play animations on top of the desktop. So far so good. However, the edges of the form is not very smooth and I would like to antialias them so that they look good on top of the desktop. It should be able to implement if I could capture the screen behind the form before the animation is drawn. I don't know how to do that though...
Another approach could be to somehow define a second colorkey which could be 50% transparent. The application could preprocess the avi-file and draw the edges with that color. It would not be the best 'antialiasing' but it would probably improve it. Right now, if the colorkey is black (000000) and there is a pixel on the edge of the form that is almost-black (000001) then that pixel will be drawn as part of the form. Of course, I have no clue on how to set up a second colorkey...
I know that the antialiasing works in theory because I can set a timer to hide the form, capture the screen, show the form and then use the captured screen to antialias the form. Doing this every 5 secs or so just isn't good enough. It's not only inefficient, it flickers too...
I would love to get some advice on this.
Metal Shine, Antialias Edges And Better Drop Off With Directional Light
Hello guys
I do not know if this is the correct forum to post this in, but anyway, here it goes.
I am developing an application(in C#) that uses directx to show some geometry. I am trying to make it as close as possible to the Viewpoint technology(www.viewpoint.com) regarding the GUI experience. I am not trying to develop a new format, nor to be able to show the geometry over the internet.
I have come quite close, and yet... then again.... I have some problems which I cannot solve:
1) Viewpoint gives the geometry a metal shine, which makes it look really cool? How do you do that? I have been trying to make it using material specular settings, but I totally burned (over lighted) the geometry. Is there a standard way to do this?
2) The edges shown by the viewpoint player are somehow antialiased, which makes the geometry look awesome. How can this be achieved using DirectX?
3) It looks like that the use of light are more manually made. It looks like it is a directional light, but that the angle between the normal and the light is controlled so the dropoff looks bigger. Can this be achieved using vertexshader in DirectX, or how can this be made?
Well, a lot of questions. I hope this is the correct forum for this.
Regards and thanks in advance for any answers,
Lasse Johansen
Resize Listview Headers With Form Resize And Change Header Color
let's say i have a listview with two columns
acct | number
the listview scales with the form, which is great, but i want the header widths to adjust relative to the form resize, but be no less than x pixels wide ... and i can do without the less than x pixels wide if it makes it easier
also, is there a way to change the color of the listview headers?
and while i am at it, is there a way to streeeeetttccccchhhh the background image to fit inside the listview box
MSFlexGrid, Resize Event? For When You Resize Column Widths...
soz so many questions today
i need to make it so that when i resize one of the columns in the flexgrid it triggers an even to save the width of that column so it remembers it.
but there is no resize event, so how would i go about doing this? i have a feeling it probably wont be easy using the msFlexGrid....
Resize Objects(controls) In A Form Resize
Hello,
I have been searching this website for information about how to resize a form and the objects within that form, and I am getting more and more confused as I read. What I have is a form with some textboxes. I want to be able to drag the corner of the form to resize the form(or hit the maximize button at the top of the form) and have the textboxes resize accordingly(like how IE or Word does the resize). Please tell me that I do not have to find the ratio of each txtbox to the window and some how do a calculation to keep that true for all sizes. From what I was reading a problem with this is that it flickers alot and looks "ugly." It would be nice if it didn't flicker. I was having some problems reading some of the code and explainations that were posted in some of those threads. If anyone can help me out that would great. Thank you.
Resize Picturebox Contents With Form Resize.
Hi all.
I want my form to resize for different screen resolutions and I'm trying to adapt posted code to be able to do it.
This code is part of the Private Sub ResizeControls(). At runtime U draw lines into picture2 which is what needs to be resized.
I don't understand the Picture2.Picture = Picture2.Image part. Just trying to work out why it's not displaying what I've drawn.
Picture2.AutoRedraw = True
Picture2.Picture = Picture2.Image
ResizePicture Picture2, Picture2.Picture
Picture2.AutoRedraw = False
Resize The Form, Don't Resize The Command Buttons - How To Do?
Hi everyone,
I got a wonderful idea from Karl Moore at
http://vb-world.net/tips/tip489.html
to resize the form and the controls.
My problem is, i want the command buttons to remain in the same size, where as the other controls such as data grid changes the size.
How can I do that?
Your help is greatly wanted.
Thank you.
Rathi.J
Resize Object By Resize (RESOLVED)
I am trying to resize an object, lets use a label as an example:
Private Sub Form_Resize()
label1.Height = Screen.Height - 1800
label1.Width = Screen.Width - 500
End Sub
Using this code will only resize to the size of the window, whereas I need the object to resize to the form.
Any help is greatly appreciated, Thanks in advance if I don't get back to you.
Added green "resolved" checkmark - Hack
Pictures, Pictures, (but None Of Them Rude Ones)
i have a popup menu that appears when you click on the icon in the sys tray, and i thought that i would be nice if i could add some icons or pictures to the items on the menu, but i have no idea how to do this, there are only three options on the menu so it shouldn't be too complicated, thanks in adavance for your help
P.S. please include code
thanks again
Resize
i don't wanna that my form be less than 3600 in height and 4800 in width.
i know that I may use this code :
Private Sub Form_Resize()
If Form1.Height < 3600 Or Form1.Width < 4800 Then
Form1.Height = 3600
Form1.Width = 4800
End If
End Sub
but this code is dirty hack cause this allows a form and after that it will resize to 3600 and 4800.
i wanna that form can't resize less than 3600 and 4800 at all
excuse me for my english
Resize Of An Ocx
I made an ocx. The Width and the Height property invoke a resize where I resize all the controls on my usercontrol. I made a third property "SliderX" that must also invoke the same resize routine??
How do I invoke a routine when a property changes?
Resize
Hi,
Please help, i want to make my application resizable. It uses graphics which i guess could make the process more complicated. None of my books cover making an app resizable, though i have a few ideas. I would greatly apreciate any thoughts, ideas or pointers.
Thanks
Resize Everything?
When i make a basic picture box on a form (lets say about 10 pixels away from the edge), well when i run the program how do i keep it having its 10 pixel distance away from the edge of the form when maximised or resized?
(Sorry, about my terrible language)
How To Resize?
I found some code on this forum that shows how to resize a user control in realtime by letting the user drag it.
I have a usercontrol with a shape control and a lable in it and I want the controls inside to resize with the resizing of the containing usercontrol.
Post examples if you can.
Thanks, Elad.
NO Resize
I am wondering how can I stop resize window efect?
I mean I want my form to remain at the same size and just minimize the window will be possible. At present time this is my code, any idea for a better one?:
Private Sub Form_Resize()
Me.Height = 7830
Me.Width = 9495
' this are the values that I want my form to remain to
End Sub
Resize Pic
i have a lot of pictures. They are at random size. But im a lazy person and dont want to open them and then change the size so they all become the same size. Is it possible to create a small program that open this file (this i know how to fix) and then save it with the size i wish in pixels, but also to put it in the middle? the mathematic in the middle thing i can fix.
Resize
hello
I am wondering how to stop the form from resizing at a certain limit. I can stop it, but it looks pretty ugly. I want a solid stop without the cursor passing a certain point.
Resize
atm i have a webrowser and a irc client in 1 window was wondering how i could make it so if the entire program was resized the irc client/webbrowser resize to fit also was wondering if it is possible for the user to be able to resize the webbrowser control individully
After Resize
hello all, i have a program which has a flash player in it and when you resize it, it takes forever trying to resize the flash window! is there anyway to make the flash window (sw1) resize afterwards, i have tried using mouse down and mouse up etc.. but because it's the flash window that has focus, this doesn't work.
James
On Hit Resize
ok how would i if someone moves the program to the ede of the screen it recices to hieght of screen and the width become 150 ?
Resize
how do i make my form full screen without pressing the button at the top
Resize
Hey I was wondering how to make the elements on my form resize when the user resizes the form. I already have the following code, which works great until you resize the width and height at the same time. The code I'm trying to use to handle that is in need of debugging and is in red.
Code:
Private Sub Form_Resize()
strWidthAdjust = frmRickEdit.Width
strHeightAdjust = frmRickEdit.Height
If strWidthAdjust > strFormWidth Then
picGradient.Width = picGradient.Width + (strWidthAdjust - strFormWidth)
txtCode.Width = txtCode.Width + (strWidthAdjust - strFormWidth)
ElseIf strWidthAdjust < strFormWidth Then
picGradient.Width = picGradient.Width - (strFormWidth - strWidthAdjust)
txtCode.Width = txtCode.Width - (strFormWidth - strWidthAdjust)
ElseIf strHeightAdjust > strFormHeight Then
picGradient.Height = picGradient.Height + (strHeightAdjust - strFormHeight)
txtCode.Height = txtCode.Height + (strHeightAdjust - strFormHeight)
ElseIf strHeightAdjust < strFormHeight Then
picGradient.Height = picGradient.Height - (strFormHeight - strHeightAdjust)
txtCode.Height = txtCode.Height - (strFormHeight - strHeightAdjust)
ElseIf strWidthAdjust > strFormWidth And strHeightAdjust > strFormHeight Then
picGradient.Width = picGradient.Width + (strWidthAdjust - strFormWidth)
picGradient.Height = picGradient.Height + (strHeightAdjust - strFormHeight)
txtCode.Width = txtCode.Width + (strWidthAdjust - strFormWidth)
txtCode.Height = txtCode.Width + (strHeightAdjust - strFormWidth)
ElseIf strWidthAdjust < strFormWidth And strHeightAdjust < strFormHeight Then
picGradient.Width = picGradient.Width - (strWidthAdjust - strFormWidth)
picGradient.Height = picGradient.Height - (strHeightAdjust - strFormHeight)
txtCode.Width = txtCode.Width - (strWidthAdjust - strFormWidth)
txtCode.Height = txtCode.Width - (strHeightAdjust - strFormWidth)
End If
End Sub
I'm also using a timer with an interval of 1 to update the variables on how big the form is:
Code:
Private Sub tmrResize_Timer()
strFormWidth = frmRickEdit.Width
strFormHeight = frmRickEdit.Height
End Sub
Can someone tell me what I'm doing wrong here?
Thanks in advance,
Kid
Non-Resize
I would like to know how you can freeze the form so you can't resize it but you can still move it. Just like a save window.
How To Resize UI
hi all,
my query is how can i resize the buttons on my forms.
There is button1 and button2 has been placed just below the button1.
supposed like this .
before button1 is clicked?
|Button1|
-------
|Button2|
--------
what i want is 'when i click the button1 ..some space should get free from below the button1 and some controls comes visible and button1 goes further bleow the controls which have appear visible.
after button1 has been clicked:
|Button1|
-------
some other controls appears here like checkbox or combobox
|Button2|
--------
No Resize
Hi, i have a trouble with this...
I want to make my form to be not resizeable, but I also want to display the minimize button on the form. So the borderstyle property is useless in this case.
Thanks!, Max.
Resize
Does any one know of a program that will resized a form window from 800 x 600 to 1240 by 780 that you could include with you program.
Or am I going to have to create two forms that has 7 frames on it in both formats.
Don
GDI+ HDC To HDC Resize
As the title suggests, I'm attempting to pass an image (which I'm having trouble creating from a HDC) to GdipDrawImageRectI.
I was passing a Graphics to it in place of the image and crashing the IDE.
I'm just using flat API, help!
I figured (searched and searched) it out. Used:
fgpBitmap.CreateFromHBitmap PicBuffer.Image.Handle
fgpGraphics.CreateFromHDC Environment.hdc
fgpGraphics.DrawImageRectI fgpBitmap.Handle, 0, 0, Width, Height
*slaps head*
P.S. Thanks OnErr0r, and well done!
See: http://www.xtremevbtalk.com/t98285.html
(it explains the beauty behind those 3 simple lines)
Resize
How to make a resaize able form with WebBrowser so when you drag it the browser gets bigger to. I hope you know what i mean...
Resize
VB Code:
Private Sub Form_Resize()Text1.Width = Form1.Width - 100Text1.Height = Form1.Height - 100End Sub
Top and right of the textarea are 50. But this code makes the textbox go off the form.
Best Way To Resize...?
What's the best way to resize the controls on a form when it's maximized (for example)?
Could you send me a code or OCX?
Thanks.
Resize.ocx
Can anyone tell me if the resize.ocx control actually works? Is there any code that can do the exact same thing?
Thanx
Resize.ocx
Does anyone have any information on the resize.ocx control. Does it work well? Is this all that's available if I want my forms to look the same regardless of the monitor or screen res. being used.
Thanx
Resize
Does anyone know of a good way to make a program gui work when you change the resolution from say 800 x 600 to 1024 x 768 or 1280x 1024 etc. Any tips or resources would help.
Resize
How to resize form, all controls and save it, so next time I run app it would load it.
Resize
How do you keep everything to scale when you resize the form, so it doesnt just cut of parts of the program?
Resize
sorry.....but i'm not familar with resize form.........
Resize JPG
Does anyone know how to resize a JPG. Sizes vary. I would like to resize 150 JPG to a thumbnail (100x100 pixels) so that I can make a webpage. I need 2 picture sizes. I already have the original 640x480.
thanks
Resize OCX
Hi All,
Anyone know where i can download for resize OCX ?
thx , and have a nice day with VB.
|