Advertisement

Results for "Author: robert rayment"

4_2005-2006 #154750
MMX Crib (updated)

MMX Crib by Robert Rayment. (Updated 6 Mar 2006, tidy-up & added snippets) For those interested in mixing VB & assembler. Demonstrates all the MMX instructions plus a few snippets. Win98 (exe WinXP) Zip 18 KB.

4_2005-2006 #154751
Sphere (Updated)

Sphere by Robert Rayment. (Update with Latitude shift & Long for Byte Array) Demo of spherical wrap, rotate and tilt. Win98 (Zip 21 KB).

4_2005-2006 #154752
Despeckler (VB + MMX)

Despeckler by Robert Rayment.(Update Re-load added) This attempts to demonstrate some basic patching, dust & scratch removal, de-spotting, pixel painting, sharp, soft, dark & brightening for pictures. The operations can be for the whole picture or a selected area with varying blemish sizes and thresholds. Color selection and a magnifier help with correcting small areas. Example bitmaps are included. Can be run as VB or VB+ASM. The ASM makes extensive use of MMX. -------------------------------------------------- Optionally the use of i_view32.exe (freeware from www.irfanview.com) is demonstrated for loading and saving any image file format in VB....See Notes.txt. -------------------------------------------------- Thanks to VBAccelerator.com (Dialog class), VBSpeed (Timer class) and Ulli (ToolTips class - PSC CodeId=42051) (Exe tested on WinXP) Win98, Zip 205KB.

4_2005-2006 #154753
Extractor

Extractor by Robert Rayment. Extracts a band of colors from a picture and shows them on a black & white picture which can be saved as a 1-bpp bmp mask. Also can extract rectangles or shapes plus a mask or resize to a rectangle. ASM can be toggled for large pictures. Win98 (exe WinXP) Zip 110 KB.

4_2005-2006 #154754
Dither(Updated)

Dither by Robert Rayment. (Updated 26/11/02 Jump table used in ASM, 2-color saving corrected, improved scroll bars) This produces a 2-color bitmap from any original using a variety of methods and can be saved or printed. The program can be run in VB or VB+ASM. The structure of the asm file roughly follows that of the VB code and so should be useful for those new to assembler. The asm code is in a bin file but could be stored in a res file or made into a dll or a class (see buggy). See Notes.txt for more info. Zip 59KB, Win98 & exe tested on WinXP.

4_2005-2006 #154755
Picture Collector

Picture Collector by Robert Rayment.(UPDATE with New Look dialog (Thanks redbird77) and maintain aspect ratio) (Upgraded for WinXP - thanks Carles) I had a request to write a quick program to collect a selection of picture files (standard VB ones) from a folder and save them as thumbnails to a single bmp. Shows multi-selection dialog and parsing input string and - might be useful - could be embellished. Win98 Zip 6 KB.

4_2005-2006 #154756
Fast Bit-shifting Class Demo (Update)

Fast Bit-shifting Class Demo (Update + ASM files)by Robert Rayment. Thanks to David Fritts for highlighting this method on PSC (CodeId=45885). I've corrected the assembler and Ulli has recast it in his own inimitable style with some explanations. In fact the method is the self-same as that used by Dmitry (CodeId=11830) a few years ago. The main point is that, when comparing fast EXEs, this bitshifting class is over 10 times quicker than the standard VB way using functions of the form 2^p. This description is extended in Notes.txt.

4_2005-2006 #154757
Fancy Scrollbars

Fancy Scrollbars by Robert Rayment. If wanted, the purpose here is to get away from the standard VB scrollbars and add other colors, shaping & effects. Lots of examples included to show almost unlimited design possibilities. One reusable bas Module provided & a set of short fixed Subs to include on the Form containing the scrollbars. No extra dependencies & just one recommended API (Sleep). Full instructions given. (exe WinXP) Win98, Zip 39 KB.

4_2005-2006 #154758
Doodle Bytes (Updated)

Doodle Bytes by Robert Rayment. (Updated) This shows a variety of animations using the technique of drawing to a byte array and blitting to the screen with a palette. Win98 (exe WinXP) 14 KB.

4_2005-2006 #154759
Layers Demo(Update5)

Layers Demo by Robert Rayment. (Update5 fileops correction) This started as a layers demo but grew a bit to include some effects and drawing tools. Individual pictures can be resized, clipped, lassoed, rotated have effects and drawn on and a merged picture can also have all these apart from lassoing and rotating. The transparency can be varied for each picture apart from the background...etc. Too many things to describe them all here so please read the Help. The screenshot was made with this prog but PSPro used to convert to jpeg. Difficult to be sure all bugs removed so comments welcome. (exe tested on WinXP) Win98, Zip 182 KB including some test pictures.

4_2005-2006 #154760
BmpToJpeg GDI+ version (Quality & Regions)

BmpToJpeg GDI+ version (Quality & Regions) by Robert Rayment. Converts bmp to jpeg. See effect of quality before saving. Selected regions can be of a different quality. Regions can be rectangle, rounded rectangle, oval or lasso. It appears that there are intermittent problems with ijl15.dll and Win2K. So this prog has used cut, paste & adapted code from Carles P V (CodeId=42376) & MrBoBo (CodeId=42488) for GDI+ which, if you haven't got it, can be downloaded at - www.microsoft.com/downloads/release.asp?releaseid=32738 - Install gdiplus.dll in your system or app folder. (Exe tested on XP Home) Win 2K, Win 98, Zip 241 KB (Couple of bmps included).

4_2005-2006 #154761
CUBOID CITY

CUBOID CITY by Robert Rayment. Demo of what can be done with wire-frame cuboids, using pure VB & a couple of APIs for creating & animating scenes. Several thousand cuboids can be happily handled but make sure to compile the animation program!. Two progs, one to draw cuboid pictures (including random mazes) and the other to use the output files (*.ccc) and animate them. There are lots of options to help with drawing - too many to describe here. The animation program uses planar perspective for speed with mostly pure VB. Speed & direction set by distance of cursor from center of display, eye (camera) level and block heights changeable, collison detection and reaching the pyramid in the mazes explodes all. These progs provide a start for a full 3D wire-frame drawing program. Example ccc files included. See Notes. (Exe tested on WinXP) Win98. Zip 115 KB.

4_2005-2006 #154762
Brush Vectors(Fin))

Brush Vectors by Robert Rayment. (Added binary input/output. Fast version, see Help for info on Fast redraw.) This is a vector drawing program using brushes with up to 8 widths, 4 directions, color & transparency. A brush stroke is started with a left-click(or space bar), move mouse to draw & left-click(or space bar) to end it. Each stroke is stored in a vector array which can be saved to a file. Colors can be parked and also saved to a file. The advantage of vectors is that they are full 24-bit color can be stretched/shrunk to a new canavs size. File format can be ASCII (.vec) or binary (.veb). Vec files are usually much smaller than BMP and veb files often smaller than GIF or JPEG. There aren't many aids to drawing yet apart from a fill tool and Shift & Ctrl keying to force vertical & horizontal drawing. So it needs some skill to produce nice pictures. Undo/Redo is almost unlimited, vectors can be deleted from the last drawn or clipped down to the last undo. Deleting any individual vector is not included yet. Important to read the help file to get the most out of this prog. (exe tested on WinXP), Win98, Zip 48KB.

4_2005-2006 #154763
Knob-Thumb-wheels & Skins

Knob-Thumb-wheels & Skins Demo by Robert Rayment. An earlier version has been deleted. Three programs. The first develops and tests bmp strips from a starting image where, for knob wheels the central rotating part's radius and incremental angle can be set as well as, for thumb wheels, number of repeated images. The second program makes compressed True Color 2D arrays of images and masks using zlib.dll (version 1.1.4.0 from www.winimage.com/zlibdll/). For most efficient inflating zlib needs the original uncompressed size. For pictures the original width and height are needed and this is stored at the beginning of the compressed picture array, from which the uncompressed size can also be calculated. The third program uses zlib.dll to inflate the images from a resource file. This is a headerless form, skin, controls & fonts resizing demo using some standard methods (plus some WAV sounds also in the resource file) - a test bed for trying out things. There are 2 full skins but the demo also stores some bitmaps in image boxes, which then serve as buttons and source for tiled skinning. When compiled all the images are then contained within the exe. See Notes.txt. (exe tested on WinXP Home) Win98 Zip 76 KB.

4_2005-2006 #154764
Create/Edit Animated Cursors (3 Oct)

Create/Edit Animated Cursors by Robert Rayment. As well as drawing the frames of an animated cursor, provides a set of step changes across the frames or a selected area for peppering, waving, swirling, squashing & Xfading. Frames can also be step changed for rotation and reduction. So this prog automates some kinds of animation. 1,4,8 & 24 bpp images can be handled. Some effects are included for 24 bpp images. Images can be loaded from ani, cur or ico files as well as captured from a bmp, gif or jpg. Title, author, number of frames, HotX & HotY and frame rates can be changed. For a new cursor any of the bpps can be selected. Some example ani-files are included. Cursors can be tested and saved at any stage. Please read the help for limitations. (Tested on Win98 & WinXP, Zip 82KB) (3 Oct Calc duration in frmDetails, system cursor preserved).

4_2005-2006 #154765
CodeScanMax(Update 6 Nov)

CodeScanMax(Update 6 Nov) by Robert Rayment. (Work around for forms with no code, addess some differences between Win98 & WinXP RichTB versions when setting Fonts & Coloring) .... This program is intended to give info on declarations and procedures used in a project. Also to display some items within procedures and a variety of unused items. To be most useful the exe can be placed on the Office toolbar or the Taskbar. It can then analyse the current project provided it is saved to disk. It is non-intrusive A second use is to copy/paste code from any other project while in the IDE. Please read limitations in the help file. I've deliberately left some unused junk in the program so you can see how it works straightaway. It's 'horses for courses' CodeScan suits me but try these others if you haven't already, they may be closer to what you want -- Code Fixer v2.2.9 Roger Gilchrist(Ulli) CodeId=53297 -- Deeplook v4.7 Dean Camera CodeId=54836 -- Code Statistics/.. v4.3 E O'Sullivan CodeID=39149 or later versions.-- Fast RTB Coloring Will Barden CodeId=39824.-- Back highlighting buggy CodeId=43509 (Tested on Win98 & WinXP, Zip 57KB).

4_2005-2006 #154766
PlayOids2(Update2)

PlayOids2 by Robert Rayment. (2nd update, move shape to mouse click point) (Quick update to rotate in plane). Just a bit of maths play for those who like that kind of thing. Demonstrates rotatable wireframe spheres, ellipsoids,cylinders etc with and without perspective. Aspect ratio, perspective distance and animation variable on the fly and save as bmp. Zip 9 KB.

4_2005-2006 #154767
Digital Image Subtraction(Updated)

Digital Image Subtraction by Robert Rayment. (Updated: faster Basic routine, ASM action on Weighting & GreyLevel scrollbars) Demonstrates the power of MMX machine code which is at least 10 times faster than Basic in an optimally compiled EXE. See Info for limitations. Sample BMPs. Assumes MMX & QueryPerform.. APIs. Zip 123 KB.

4_2005-2006 #154768
Semaphore & the International Flag Code

Semaphore & the International Flag Code by Robert Rayment. Enter any text and illustrate message using Semaphore or Ship flag codes. Learning aid. Straightforward code, easily embellished. (Zip 144 KB).

4_2005-2006 #154769
Beeper Madness

Beeper Madness by Robert Rayment. Plays 160 tunes through the PC speaker. Crazy! (Not Win98, Zip 143KB)

Languages
Top Categories
Global Discovery